Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Felipe Monteiro de Carvalho
On 1/26/07, Peter Vreman <[EMAIL PROTECTED]> wrote: For Windows there is even an internal linker. If symbian uses something like PE coff you can maybe even use that one. It works for all Windows targets (Win32,Win64,WinCE) already. Does the internal linker support linking to .LIB files? The p

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Peter Vreman
> On 1/26/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: >> COFF is something like TIFF or AVI. Usually linkers and assembler don't make >> use >> of everythin one format supports. Best bet is to dump some object files of >> CodeWarrior and try to adapt the FPC coff backend so it is also able to

Re: [fpc-pascal] support for FreeBSD4 broken in fpc 2.0.4

2007-01-26 Thread Marco van de Voort
> I haven't noticed up to now, but using fpc-2.0.4 on FreeBSD does not > work completely in FreeBSD 4.11 any more. This is by design. The default changed from FreeBSD4 to FreeBSD5 here. The meaning of the compat switch -Xf changed accordingly afaik. > - Compiling fpc 2.0.4 works. > - Compiling p

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Felipe Monteiro de Carvalho
On 1/26/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: COFF is something like TIFF or AVI. Usually linkers and assembler don't make use of everythin one format supports. Best bet is to dump some object files of CodeWarrior and try to adapt the FPC coff backend so it is also able to create CodeWa

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Felipe Monteiro de Carvalho
On 1/26/07, Matt Emson <[EMAIL PROTECTED]> wrote: Or, if CodeWarrior has an assembler (it does on some platforms, not others), it might be worth just going that route. It might well be simpler to create .s files and have codewarrior assemble and link them. Unfortunately the Symbian UIQ SDK only

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Matt Emson
> COFF is something like TIFF or AVI. Usually linkers and assembler don't make use > of everythin one format supports. Best bet is to dump some object files of > CodeWarrior and try to adapt the FPC coff backend so it is also able to create > CodeWarrior compatible coffs. Or, if CodeWarrior has an

[fpc-pascal] support for FreeBSD4 broken in fpc 2.0.4

2007-01-26 Thread Marc Santhoff
Hi, I haven't noticed up to now, but using fpc-2.0.4 on FreeBSD does not work completely in FreeBSD 4.11 any more. Observations: - Compiling fpc 2.0.4 works. - Compiling programs does not work with the new startup code (rtl/freebsd/i386/cprto.as) error: failure in _init_tls() couldn't fin

Re: [fpc-pascal] About FPC calling register like Delphi

2007-01-26 Thread Alexandre Leclerc
2007/1/26, Carlo Kok <[EMAIL PROTECTED]>: Alexandre Leclerc wrote: > 2007/1/26, Carlo Kok <[EMAIL PROTECTED]>: >> Michael Van Canneyt wrote: >> > >> > On Thu, 25 Jan 2007, Alexandre Leclerc wrote: >> > >> >> 2007/1/25, Felipe Monteiro de Carvalho >> <[EMAIL PROTECTED]>: >> >>> On 1/25/07, Alexand

Re: [fpc-pascal] About FPC calling register like Delphi

2007-01-26 Thread Carlo Kok
Alexandre Leclerc wrote: 2007/1/26, Carlo Kok <[EMAIL PROTECTED]>: Michael Van Canneyt wrote: > > On Thu, 25 Jan 2007, Alexandre Leclerc wrote: > >> 2007/1/25, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: >>> On 1/25/07, Alexandre Leclerc <[EMAIL PROTECTED]> wrote: Yes, I understand t

Re: [fpc-pascal] About FPC calling register like Delphi

2007-01-26 Thread Alexandre Leclerc
2007/1/26, Carlo Kok <[EMAIL PROTECTED]>: Michael Van Canneyt wrote: > > On Thu, 25 Jan 2007, Alexandre Leclerc wrote: > >> 2007/1/25, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: >>> On 1/25/07, Alexandre Leclerc <[EMAIL PROTECTED]> wrote: Yes, I understand that, but I *need* a scriptin

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Florian Klaempfl
Jonas Maebe schrieb: > > On 26 jan 2007, at 11:55, Felipe Monteiro de Carvalho wrote: > >> I went througth the documentation of both gnu as and the linker, and >> both say to be using COFF format. So are there several >> compilers/linkers using different (read incompatible) interpretations >> of

Re: [fpc-pascal] About FPC calling register like Delphi

2007-01-26 Thread Jonas Maebe
On 26 jan 2007, at 12:51, Carlo Kok wrote: * FPC has changed default calling convention once (or twice?) Once afaaik. * The way "register" works on FPC is slightly different from delphi, in delphi special types like interfaces, strings and variant results are passed as var parameters, it

Re: [fpc-pascal] Different Object Code formats

2007-01-26 Thread Jonas Maebe
On 26 jan 2007, at 11:55, Felipe Monteiro de Carvalho wrote: I went througth the documentation of both gnu as and the linker, and both say to be using COFF format. So are there several compilers/linkers using different (read incompatible) interpretations of what a coff .o file should be, all ca

Re: [fpc-pascal] About FPC calling register like Delphi

2007-01-26 Thread Carlo Kok
Michael Van Canneyt wrote: On Thu, 25 Jan 2007, Alexandre Leclerc wrote: 2007/1/25, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: On 1/25/07, Alexandre Leclerc <[EMAIL PROTECTED]> wrote: Yes, I understand that, but I *need* a scripting engine which is based on Pascal. And ROPS is the only

[fpc-pascal] Different Object Code formats

2007-01-26 Thread Felipe Monteiro de Carvalho
Hello, This isn´t really a question about free pascal, more a general programming question, but I thougth someone here may have experience with this. On my efforts to port fpc to symbian I got to compile a simple application using my minimal symbian rtl. It´s of course assembled with GNU Assembl