Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-04

Re: About new (2.1.1) optimizations switches

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luiz Americo Pereira Camara
to Jonas Maebe: cputypestr : array[tcputype] of string[10] = ('', 'PENTIUMM' ); (you can use lowercase…
Jonas Maebe wrote 23 lines
On 18 apr 2006, at 15:18, Okulov Rostislav wrote: > > Warning: You are using the obsolete switch -OG > Warning: You are using the obsolete switch -Op<nr>, please use -Op<name> > Nice. > > What name should I use now to compile under needed processor? cputypestr : array[tcputype] of string[10] = ('', '386', 'PENTIUM', 'PENTIUM2', 'PENTIUM3', 'PENTIUM4', 'PENTIUMM' ); (you can use lowercase too) This also exists for other architectures than 80x86, but I don't think it makes any difference yet there.

How about AMD processors? Is there specific switches for them?

Luiz

Reply by email

Okulov Rostislav

Hello there.

Warning: You are using the obsolete switch -OG
Warning: You are using the obsolete switch -Op<nr>, please use -Op<name> Nice.

What name should I use now to compile under needed processor?

Reply by email

Jonas Maebe
to Okulov Rostislav
Okulov Rostislav wrote 7 lines
Warning: You are using the obsolete switch -OG Warning: You are using the obsolete switch -Op<nr>, please use - Op<name> Nice. What name should I use now to compile under needed processor?
    cputypestr : array[tcputype] of string[10] = ('',
      '386',
      'PENTIUM',
      'PENTIUM2',
      'PENTIUM3',
      'PENTIUM4',
      'PENTIUMM'
    );

(you can use lowercase too)

This also exists for other architectures than 80x86, but I don't think it makes any difference yet there.

Jonas

Reply by email

Peter Vreman
to Okulov Rostislav: Hello there. Warning: You are using the obsolete switch -OG Warning: You are using the…
Show quoted text 7 lines
Hello there. Warning: You are using the obsolete switch -OG Warning: You are using the obsolete switch -Op<nr>, please use -Op<name> Nice. What name should I use now to compile under needed processor?

It is shown in the help pages where the values can be found:

-o<x> change the name of the executable produced to <x> *** press enter ***

-O<x> optimizations:
-O- disable optimizations
-O1 level 1 optimizations (quick and debugger friendly) -O2 level 2 optimizations (-O1 + quick optimizations) -O3 level 3 optimizations (-O2 + slow optimizations) -Oa<x>=<y> set alignment
-Oo[NO]<x> enable or disable optimizations, see fpc -i for possible values
-Op<x> set target cpu for optimizing, see fpc -i for possible values
-Os generate smaller code

Reply by email