[Lazarus] No target CPU's in combobox dropdown
Vincent Snijders
vsnijders at vodafonevast.nl
Tue Jun 9 23:13:21 CEST 2009
Graeme Geldenhuys schreef:
> Vincent Snijders wrote:
>> Thanks. That is what I hoped for. :-)
>
> We (normal users of Lazarus IDE) can't expect you guys to do everything. :-)
>
:-)
>
>> I am not sure adding yet an extra option on that page is a good idea.
>
> Now you tell, after all the struggle to get it implemented. :-( I just
> thought, seeing that it is in the Project > Compiler Options, why not
> add it to the LazBuildDlg as well. After all, I would like to have my
> copy of Lazarus IDE optimized for my processor. It's the project I run
> the most during the day.
>
> The other thing I wasn't sure about, so rather left it out, was that the
> Target Processor Combobox could add the following extra options
> automatically:
>
> -Op<x> -Cp<x>
>
> At the moment that combobox acts exactly like the one in Project >
> Compiler Options, by ONLY adding the -Op parameter.
>
> Doesn't the -Op<x> and -Cp<x> go hand-in-hand, or don't I fully
> understand those options?
-Op<x> uses those general i386 instructions which work best on the CPU
<x>, but still work on other i386 processors. So compiled with
-OpPENTIUM4, it still works on a pentium processor.
-Cp<x> enables the use of instructions from processor <x>. If it
-CpPENTIUM4 is used, it may cause illegal instruction exceptions on an
ordinary pentium processor.
-Cp is about the available instruction set. -Op is an optimization
parameter, which tells what processor to optimize for.
Only -Op is safe to add, but it is only about some optimization, not as
important as -P<x>.
Note that AFAIK -Op is only useful for the i386 target.
Vincent
More information about the Lazarus
mailing list