[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Optimization in gcc

Madhu M. Kurup forced the electrons to say:
> Now I want the compiled code to use as many optimizations as it can on the
> target machine. This is of course the equivalent of doing a
> 	g++ -O2 x1.cpp -o x1

I am not sure what you want to do, since shipping a makefile along seems to me
the simplest option, but -

make CXXFLAGS+=-O2 x1

will achieve what you want to do.



The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. (binand@xxxxxxxxxxxxxxxxxxxxx)