3 ms·
I don't recall specifically about MSC but Turbo C had the same.... We considered having all the assembler in separate files better practice...
by ArkyBeagle 10y ago
I don't recall specifically about MSC but Turbo C had the same....
We considered having all the assembler in separate files better practice...
- nickpsecurity 10y agoEven 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.