Ododo Ododo - 1 month ago 7
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

this should help:

gcc main.c -o /dev/stdout