This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why so slow? gcc vs vc6


Do not use clock to determine the speed, better use profiler...
Compile your program with
gcc-3.4 -g0 -march=k8 -O3 -fomit-frame-pointer -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -mfpmath=sse -pg

Then run your program, after that make "gprof your_program" look where your
code took a lot of time to execute (it might not be compiler problem).

Arturas Moskvinas
P.S.: second of all, gcc is not made for super fast code generation, it is
not the main criterea (i think so), it is made to be stable, as much as possible
bug free. And of course it is not very easy to handle so many
microprocessor architectures. VC++ must handle only one architecture
i386, and of course only for one operational system (they have more
time to optimize things for such specific platforms)...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]