Re: [fpc-devel] Second version of FPC for iPhone SDK 2.x available

2009-03-21 Thread dmitry boyarintsev
hello Jonas,

what do you think about using another fpc.cfg file (i.e. fpcxcode.cfg)
for iPhone compilation, rather than passing compiler configuration
through the command line?
i guess that the ideally, there would be no additional .cfg files, and
compiler should use common configuration.
But for now, an additional .cfg file would make compiler configuration easier!

Also, i'm not experienced in compiling fp-cross-compilers, but is it
possile to build ppcarm (for darwin) from svn trunk?

Thanks,
Dmitry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread ik
Hello,

I have a real (not emulator) opnmoko PDA/cell phone.  The main distro for it
uses armv4tl.
Is there a need to add extra support for OM, or will FPC (what version) will
support it ? If there is a support, are there any known issues with it ?

If there is work needed to be done, can you please point me to what is
needed to be done ?

Thanks,
Ido
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Second version of FPC for iPhone SDK 2.x available

2009-03-21 Thread Jonas Maebe


On 21 Mar 2009, at 10:38, dmitry boyarintsev wrote:


hat do you think about using another fpc.cfg file (i.e. fpcxcode.cfg)
for iPhone compilation, rather than passing compiler configuration
through the command line?
i guess that the ideally, there would be no additional .cfg files, and
compiler should use common configuration.
But for now, an additional .cfg file would make compiler  
configuration easier!


No, because it's not enough that the compile can find its units. Xcode  
can transparently link together C, C++, Objective-C and Pascal code,  
but for this it needs to know all the necessary libraries and object  
files. For this reason, the template generates a static library  
containing the object files of all units shipped with FPC and tells  
Xcode to link this library (it will only link the object files of the  
actually used units).


It would be hard to get everything smoothly running if custom fpc.cfg  
files were supported for a variety of reasons (no guaranteed order in  
which script phases are executed in Xcode, no guaranteed common  
directory to use by different targets). What would however be  
possible, is to allow easily changing the location of the used  
*installed* copy of FPC (so you don't have to install under /usr/ 
local, but anywhere you want). This requires some changes to the  
template though.



Also, i'm not experienced in compiling fp-cross-compilers, but is it
possile to build ppcarm (for darwin) from svn trunk?


1) copy /Developer/FreePascalCompiler/iPhoneSnapshot-2.3.1-r12531/ 
Source/rtl/darwin/arm/sig_cpu.inc to the rtl/darwin/arm directory of  
your svn checkout (that file was generated when you installed the FPC  
iPhone SDK integration kit)
2) in the top level fpc directory of your checkout, execute the  
following (in the first line, replace /iphone2.1 with the name of  
the actual directory where you installed the iPhone SDK):


export IPHONEPLATFORMBASEDIR=/iphone2.1/Platforms/iPhoneOS.platform/ 
Developer
make FPC=your_ppc386_2.3.1 CPU_TARGET=arm CROSSOPT=-FD$ 
{IPHONEPLATFORMBASEDIR}/usr/bin -XR${IPHONEPLATFORMBASEDIR}/SDKs/ 
iPhoneOS2.0.sdk/ -ap all



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Second version of FPC for iPhone SDK 2.x available

2009-03-21 Thread Jonas Maebe


On 21 Mar 2009, at 13:58, Jonas Maebe wrote:


On 21 Mar 2009, at 10:38, dmitry boyarintsev wrote:


Also, i'm not experienced in compiling fp-cross-compilers, but is it
possile to build ppcarm (for darwin) from svn trunk?


1) copy /Developer/FreePascalCompiler/iPhoneSnapshot-2.3.1-r12531/ 
Source/rtl/darwin/arm/sig_cpu.inc to the rtl/darwin/arm directory of  
your svn checkout (that file was generated when you installed the  
FPC iPhone SDK integration kit)
2) in the top level fpc directory of your checkout, execute the  
following (in the first line, replace /iphone2.1 with the name of  
the actual directory where you installed the iPhone SDK):


export IPHONEPLATFORMBASEDIR=/iphone2.1/Platforms/iPhoneOS.platform/ 
Developer
make FPC=your_ppc386_2.3.1 CPU_TARGET=arm CROSSOPT=-FD$ 
{IPHONEPLATFORMBASEDIR}/usr/bin -XR${IPHONEPLATFORMBASEDIR}/SDKs/ 
iPhoneOS2.0.sdk/ -ap all


And to install it afterwards:

make FPC=`pwd`/compiler/ppcrossarm OPT=-ap CPU_TARGET=arm CROSSOPT=- 
FD${IPHONEPLATFORMBASEDIR}/usr/bin -XR${IPHONEPLATFORMBASEDIR}/SDKs/ 
iPhoneOS2.0.sdk/ -ap install CROSSINSTALL=1


(possibly with an INSTALL_PREFIX=xyz at the end to install it under  
xyz rather than under /usr/local)



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread Paul Breneman

Hello Ido,


I have a real (not emulator) opnmoko PDA/cell phone.  The main distro for it
uses armv4tl.
Is there a need to add extra support for OM, or will FPC (what version) will
support it ? If there is a support, are there any known issues with it ?

If there is work needed to be done, can you please point me to what is
needed to be done ?


Could you please try compiling and running the program here and let me 
know if it works out?

  http://www.turbocontrol.com/helloworld.htm

--
Regards,
Paul Breneman
www.TurboControl.com
www.TurboControl.com/embeddedfreepascal.htm - Notes on using FreePascal 
on embedded systems

www.TurboControl.com/monitor.htm - Free environment monitoring programs
www.TurboControl.com/TPSupport.htm - TurboPower support links
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread Henry Vermaak
2009/3/21 ik ido...@gmail.com:
 Hello,

 I have a real (not emulator) opnmoko PDA/cell phone.  The main distro for it
 uses armv4tl.
 Is there a need to add extra support for OM, or will FPC (what version) will
 support it ? If there is a support, are there any known issues with it ?

do you know if it uses eabi or oabi?  last time i tried eabi, it
worked with -O-.  you might also have to build the compiler and rtl
for softfloat.

henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread Paul Breneman

Henry,


I have a real (not emulator) opnmoko PDA/cell phone.  The main distro for it
uses armv4tl.
Is there a need to add extra support for OM, or will FPC (what version) will
support it ? If there is a support, are there any known issues with it ?


do you know if it uses eabi or oabi?  last time i tried eabi, it
worked with -O-.  you might also have to build the compiler and rtl
for softfloat.


I've started developing some embedded ARM products (for city tornado 
warning sirens) using FreePascal.  Thankfully FPC 2.2.2 ARM-Linux works 
just fine on the board I'm using.


But I'd like to understand more about the different options that FPC 
supports, and maybe add more examples at this page:

  http://www.turbocontrol.com/helloworld.htm

oabi  hard float - default FPC 2.2.2 ARM-Linux?
oabi  soft float
eabi  hard float
eabi  soft float

Are those the main options?

FreePascal is only precompiled for the first configuration?

Thanks in advance for any advice.  I sure do need to study up on this 
more so links or info would be appreciated.


--
Regards,
Paul Breneman
www.TurboControl.com
www.TurboControl.com/embeddedfreepascal.htm - Notes on using FreePascal 
on embedded systems

www.TurboControl.com/monitor.htm - Free environment monitoring programs
www.TurboControl.com/TPSupport.htm - TurboPower support links
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to search units reported by gdb? (fpc and mseide devels please participate)

2009-03-21 Thread Jonas Maebe


On 20 Mar 2009, at 19:54, Paul Ishenin wrote:


Jonas Maebe wrote:
In trunk/r12933 you can now force the compiler to always store  
absolute path for include files using -gostabsabsincludes. See the  
svn comment for why it's not the default (gcc also never does this,  
you can't even force it to do that). There is no way to specify a  
separate base directory for an include file in stabs, as opposed to  
for the main source file.


The reason that gdb previously already found an absolute path for  
some include files, was probably that they were located in the same  
directory as the main unit file.

Sorry, for me it is somehow strange that this works different:

{file=C:/programming/fpc/rtl/i386/i386.inc,fullname=C:/ 
programming/fpc/rtl/i386/i386.inc} and

{file=./include/messagedialogs.inc}

main unit file is located in
C:/programming/mytest/0.9.27/SafeCall/project1.lpr


Did you recompile everything with -gostabsabsincludes? And did it  
change anything at all?



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to search units reported by gdb? (fpc and mseide devels please participate)

2009-03-21 Thread Paul Ishenin

Jonas Maebe wrote:

Sorry, for me it is somehow strange that this works different:

{file=C:/programming/fpc/rtl/i386/i386.inc,fullname=C:/programming/fpc/rtl/i386/i386.inc} 
and

{file=./include/messagedialogs.inc}

main unit file is located in
C:/programming/mytest/0.9.27/SafeCall/project1.lpr


Did you recompile everything with -gostabsabsincludes? And did it 
change anything at all?
No, I had not. I'm asking about default fpc behavior. I just found it 
strange that 2 files are handled different while both have .inc extension.


Best regards,
Paul Ishenin.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Second version of FPC for iPhone SDK 2.x available

2009-03-21 Thread dmitry boyarintsev
Thanks for the comments.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to search units reported by gdb? (fpc and mseide devels please participate)

2009-03-21 Thread Jonas Maebe


On 21 Mar 2009, at 15:07, Paul Ishenin wrote:


Jonas Maebe wrote:

Sorry, for me it is somehow strange that this works different:

{file=C:/programming/fpc/rtl/i386/i386.inc,fullname=C:/ 
programming/fpc/rtl/i386/i386.inc} and

{file=./include/messagedialogs.inc}

main unit file is located in
C:/programming/mytest/0.9.27/SafeCall/project1.lpr


Did you recompile everything with -gostabsabsincludes? And did it  
change anything at all?
No, I had not. I'm asking about default fpc behavior. I just found  
it strange that 2 files are handled different while both have .inc  
extension.


They are not necessarily handled differently. When gdb finds an  
include file specified in the debug information, then it will always  
display the full path in the output above. If it doesn't find it (for  
whatever reason), it will display what's stored in the debug  
information (which can be a relative path).



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread Henry Vermaak
2009/3/21 Paul Breneman paul2...@brenemanlabs.com:
 Henry,

 I've started developing some embedded ARM products (for city tornado warning
 sirens) using FreePascal.  Thankfully FPC 2.2.2 ARM-Linux works just fine on
 the board I'm using.

 But I'd like to understand more about the different options that FPC
 supports, and maybe add more examples at this page:
  http://www.turbocontrol.com/helloworld.htm

 oabi  hard float - default FPC 2.2.2 ARM-Linux?

yes, i think so.

 oabi  soft float

i've used this and it works well.

 eabi  hard float
 eabi  soft float

i think if you compile fpc for armel, then it does softfloat, but i'm
not sure.  i'm not sure if fpc can take advantage of vfp
co-processors, either.  i'm still planning to get some of our software
working for arm eabi when i manage to engineer another brain to assist
me.


 Are those the main options?

in addition to this there is also the big endian variant.  i seem to
remember that fpc worked for armeb with softfloat, but i couldn't get
it to work with my board.  most arm is now little endian, it seems.


 FreePascal is only precompiled for the first configuration?

i think so.  even debian lenny uses eabi now, so this will probably change.


 Thanks in advance for any advice.  I sure do need to study up on this more
 so links or info would be appreciated.

i'm really not an expert, but if florian is around he can give you
answers to any specific questions/problems regarding fpc with arm, so
just ask!

henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread ik
Hello All,

Sorry for the late response.
I will try the fpc port of Turbo Control soon.

The file command gives me the following information:
/bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
linked (uses shared libs), stripped

I do not have experience with non x86 architecture. Can anyone tell from
that what is the type of ABI for arm ?

Thanks,

Ido


On Sat, Mar 21, 2009 at 3:20 PM, Henry Vermaak henry.verm...@gmail.comwrote:

 2009/3/21 ik ido...@gmail.com:
  Hello,
 
  I have a real (not emulator) opnmoko PDA/cell phone.  The main distro for
 it
  uses armv4tl.
  Is there a need to add extra support for OM, or will FPC (what version)
 will
  support it ? If there is a support, are there any known issues with it ?

 do you know if it uses eabi or oabi?  last time i tried eabi, it
 worked with -O-.  you might also have to build the compiler and rtl
 for softfloat.

 henry
 ___
 fpc-devel maillist  -  fpc-devel@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Porting FPC to Support OpenMoko

2009-03-21 Thread Henry Vermaak
2009/3/21 ik ido...@gmail.com:
 Hello All,

 Sorry for the late response.
 I will try the fpc port of Turbo Control soon.

 The file command gives me the following information:
 /bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
 linked (uses shared libs), stripped

 I do not have experience with non x86 architecture. Can anyone tell from
 that what is the type of ABI for arm ?

you should be able to tell from the readelf -h output, and if you try
this with your cross compiler:

arm-linux-gcc -dM /dev/null | grep -i arm

for more info, read: http://wiki.debian.org/ArmEabiPort

henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel