This is the mail archive of the gcc@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]

Re: C++: EGCS perf. vs GCC


On Tue, Dec 08, 1998 at 11:02:26AM +0000, Alex Maranda wrote:
> Will someone please enlighten me as for the purpose annd actual effect of
> -mcpu and -march? they are always both specified even if not passed

-mcpu turns on optimizations for the selected CPU (instruction scheduling
...) which don't destroy compatibility to the CPU specified with -march.
-march=pentiumpro eg. will result in binbaries which don't run on Pentiums,
486 ... using some PPro specific machine instructions.

-- 
+--------------------------------------------------------------+
|  cand.phys. Kurt Garloff        C1-O4-101 (Chemiegeb"aude)   |
|            garloff@hft.e-technik.uni-dortmund.de             |
|                 Public PGP key available !                   | 
+--------------------------------------------------------------+


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