News for hackers. Stuff that matters.
Re:Modern C [pdf] by nickpsecurity on Monday November 28, 2016 @09:07PM (#13060129)
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?
Re:Modern C [pdf] by ArkyBeagle on Monday November 28, 2016 @10:28PM (#13060536)
We'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.