Hi there,
Blindesambok wrote: |
---|
Since I am new to this forum, is this forum only for c++ or is just c also allowed? |
As C is a subset of C++, C questions are allowed, but you will usually get replies which include and promote C++ examples and explanations.
As for the question (if I understand it correctly): First '>' is a command redirection operator within the windows command shell - it will thus not be passed to g++, but rather the output produced by g++ will be sent to the file fred.asm.
There are only two arguments to g++:
-S = Only compile the source files, do not assemble (or link) them.
fred.c = your source file
For more information:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true
http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_3.html#SEC5
On a sidenote: I'm not sure that line would work, the documentation does not state that g++ -S sends its output to stdout, but rather that it creates a new file.
Hope that helps, please do let us know if you have any further questions.
All the best,
NwN