Posts

Post not yet marked as solved
2 Replies
449 Views
Using Xcode 15.2, x86_64, and for the life of me, I can't figure out how to declare a data structure in assembly. All the "current"ish references I've read for Clang LLVM & "as" assembly have no references to data structure directives. Tons of different types of sections, but I haven't seen any that would apply. I've looked at .bss, and while I can defines different fields in it, it still reserves space in the program, and I don't need space reserved - I just need a data structure definition so I'm not using magic numbers. Perhaps there is a utility to convert a C struct to an assembly struct that I haven't seen? Surely there has to be a way to define a data structure in assembly.
Posted
by toddburch.
Last updated
.
Post not yet marked as solved
0 Replies
521 Views
My first post here. After a failed build, clicking the "Command CompileC failed with nonzero exit code", the build issue report used to display. Now, clicking on the above blue box, nothing happens. I just updated to Ventura 13.6.3 this morning and Xcode 15.2 is now active. I have a basic C command line project and have a couple asm files added to the project that are called from C.main. I've tried restarting Xcode and removed all the build files (clean build folder) and still do not see the error listing. Also, how do I generate a listing file for the assembled files? I've looked in build settings -> build options, but I don't see where to provide settings for the assemble step.
Posted
by toddburch.
Last updated
.