Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Example: "g++ -o out.a main.cpp"
If you want that to be executed inside a C or C++ program:
system("g++ -o out.a main.cpp");
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Write an assembler, allocate some space and run the output as a function.
MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116