3 ms·
The compiler invocation above only creates a single object file.
by tedunangst 8y ago
The compiler invocation above only creates a single object file.
- tialaramex 8y agoNo, but I can see why you thought so. The invocation above creates one object file for each C source file, as temporary files, (in a Unix system you can watch it do this with a suitably powerful syscall tracer, presumably something similar is possible on non-Unix systems but I don't know exactly how) Then it links them and produces the output you've mistaken for an "object file", then it deletes the temporary files.
- tedunangst 8y agoAh, probably the easiest way to deal with some translation unit edge cases. :(