[fpc-devel] Re: Trying to add "sky" target based on "arm" target. (how to set custom target conditional ?)
Skybuck Flying
skybuck2000 at hotmail.com
Fri Apr 22 16:39:42 CEST 2011
Ok,
I think I got a working to a certain point... the error is gone... it now
probably needs an RTL for "sky".
I am still a bit confused about the difference between "i_" and "t_" units.
I am a bit confused about the difference between "processor" conditional and
"operating system" conditional.
For example:
ppcarm.pp
It only defines -darm
So how does it know to compile for which operating system ?
Apperently it sets a default ?
And perhaps the t_arm unit sets default operating system when
NOTARGETDEFINED is encountered or something ?
So apperently the source code automatically sets a default target ?!?
So what if I want to specify a certain custom target ?!?
Do I simply add it as a conditional somewhere ?
Like for example:
"windows" or "wince" or what do I do ?
Furthermore:
I guess I will need more conditionals then just "sky" because that would be
a bit confusing...
I could use "skycpu" and "skyos" but there probably is already a sky os out
there.. so to prevent confusion I will probably use:
sfcpu001 and sfvos001
Which stands for:
Skybuck Flying's CPU Version 001
and
Skybuck Flying's Virtual Operating System 001
I am not yet completely sure about the version number behind it... but
perhaps it's wise/ok...
Since i386 and x86 and x64 seem to do that somewhat as well... but that's
processor version...
but windows and win32 and win64 is also a sort of version string ;)
So I guess I can just add it... but if my versions go up rapidly then
constantly new constants required which would not be so cool...
though for now I'll try to keep number down and probably only a few major
different versions and that's it... but who knows in the future ;)
Lastly:
I tried to compile HelloWorld.pas as follows:
P:\fpcbuild-2.4.2-experiment-with-lazarus-9-30-fpc-2-4-2\fpcsrc\bin\sky>ppsky
-M
Delphi HelloWorld.pas
Warning: Source OS Redefined!
Fatal: Can't find unit system used by HelloWorld
Fatal: Compilation aborted
I guess this means RTL has to be added ?
Bye,
Skybuck.
More information about the fpc-devel
mailing list