3 ms·
Even in embedded examples, I see a lot of inline ASM in C functions. So, what's separate files like? Do you just compile them separately, link them in as librar
by nickpsecurity 10y ago
Even in embedded examples, I see a lot of inline ASM in C functions. So, what's separate files like? Do you just compile them separately, link them in as libraries, wrap them as a C function, and then call it? And what was the argument for this over just putting them inside functions of C source where necessary?
- ArkyBeagle 10y agoWe'd generally wrap them as C functions. We'd frequently use the compiler to generate the assembly; have a prototype and all that. Which is better depends.