6 ms·
When you call printf you will actually issue a system call to write to stdout. Does stdlib directly issue system calls or does it use some inline assembly?
by DeathArrow 5y ago
When you call printf you will actually issue a system call to write to stdout. Does stdlib directly issue system calls or does it use some inline assembly?
- unanswered 5y agoWhat do you feel the difference is between "directly issuing system calls" and "some inline assembly"?
- DeathArrow 5y agoUsing some system interrupts vs calling some driver.
- BenjiWiebe 5y agoTo issue system interrupts (afaik) it would have to use inline assembly. Or non-inline assembly, linked to the rest of the library. C doesn't have an 'int' (call interrupt) primitive. So the answer to your question is yes.