Date sent:              Sun, 19 Jun 2005 22:49:44 +0200
From:                   Florian Klaempfl <[EMAIL PROTECTED]>
To:                     FPC-Pascal users discussions 
<fpc-pascal@lists.freepascal.org>
Subject:                Re: [fpc-pascal] selecting target processor
Send reply to:          FPC-Pascal users discussions 
<fpc-pascal@lists.freepascal.org>
        <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>


> > On 19 Jun 2005, at 20:48, Marc Santhoff wrote:
> > 
> >> how can I tell fpc to use only instructions supported on a specific
> >> processor?
> >>
> >> I'm compiling on an athlon for running on a geode (restriction has
> >> to define instruction set from x686 to x586, I think).
> > 
> > In theory, the code generated by FPC should always run on an i386 
> > (even if you use e.g. -Op3), unless you use some special command
> > line switches I cannot find in the help. 
> 
>   -C<x>  code generation options:
>       -Cc<x>     set default calling convention to <x>
>       -CD        create also dynamic library (not supported)
>       -Ce        Compilation with emulated floating point opcodes
>       -Cf<x>     Select fpu instruction set to use, see fpc -i for
> possible values
>       -Cg        Generate PIC code
>       -Ch<n>     <n> bytes heap (between 1023 and 67107840)
>       -Ci        IO-checking
>       -Cn        omit linking stage
>       -Co        check overflow of integer operations
>       -Cp<x>     select instruction set, see fpc -i for possible
>       values
> 
> That is it :)

Nice can of worms I haven't been aware of... ;-) So what is the best -
Cp option for my Athlon then? ;-))) And what would be correct for AMD 
K6 and all other non-Intel CPUs > 386? Looks as a lot of work for 
Michael...

Tomas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to