Skip to content

Add a concept exercise for Interfacing with C: structs#380

Merged
oxe-i merged 5 commits intoexercism:mainfrom
oxe-i:add_interfacing_C_structs_concept_exercise
Oct 28, 2025
Merged

Add a concept exercise for Interfacing with C: structs#380
oxe-i merged 5 commits intoexercism:mainfrom
oxe-i:add_interfacing_C_structs_concept_exercise

Conversation

@oxe-i
Copy link
Copy Markdown
Contributor

@oxe-i oxe-i commented Oct 28, 2025

The first task focus on a float being passed in an integer register, and also on simple bit manipulations to fit everything in 2 registers.

The second task focus on a simple case of a difference in alignment between struct's fields, and the need to account for padding bytes.

The third task focus on a function returning a struct in memory and also on handling a slightly more complex case of misalignment within struct's fields.

The fourth task focus on managing an array of structs and also on returning a bool (which wasn't tested on the previous exercise).

The last task focus on passing a struct in memory as argument to a function.

Copy link
Copy Markdown
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looking good. Some suggestions, though.

Comment thread exercises/concept/need-for-speed/.docs/introduction.md Outdated
Comment thread exercises/concept/need-for-speed/.docs/introduction.md Outdated
Comment thread exercises/concept/need-for-speed/.docs/introduction.md Outdated
@oxe-i oxe-i merged commit 6b2d404 into exercism:main Oct 28, 2025
5 checks passed
@oxe-i oxe-i deleted the add_interfacing_C_structs_concept_exercise branch October 28, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants