Ododo Ododo - 1 year ago 70
Python Question

Directly read bytes produced by gcc

I have a python program that trigger a compilation through the command 'make' on the system.
I'd like to read directly the program built by gcc in the compilation process without having the binary writed to the disk,
Is that possible ?

thanks !

Answer Source

this should help:

gcc main.c -o /dev/stdout