Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-29 Thread Sven Barth via fpc-pascal
Karoly Balogh (Charlie/SGR) schrieb am Mi., 29. Jan. 2020, 01:22: > However, you need to add the new target it to the build system, and the > compiler, which is quite complicated, as a system ID and various > properties have to be added to quite a few places (compiler, > /systems/t_bsd.pas, syste

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Karoly Balogh (Charlie/SGR)
Hi, On Tue, 28 Jan 2020, Florian Kl?mpfl wrote: > > The primary goal of a startup code is to get pointers to the command > > line parameters and the environment block. If arm-freebsd uses the stack > > to pass these pointers (the same way as i386-freebsd), then you need > > just to convert the i3

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Karoly Balogh (Charlie/SGR)
Hi, On Tue, 28 Jan 2020, Fabio Luis Girardi via fpc-pascal wrote: > I was thinking of starting with armhf-netbsd, that can I suppose to be > the closest to the armhf-freebsd target. I'm right? Someone experienced > adding new targets for FPC has another suggestion? Well, you don't need to clone

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Florian Klämpfl
Am 28.01.20 um 20:40 schrieb Yuriy Sydorov: On 28.01.2020 21:14, Fabio Luis Girardi via fpc-pascal wrote: Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov > escreveu:     You need to add support of a new CPU to the existing freebsd target. The target would be arm-fre

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Marco van de Voort
Op 28/01/2020 om 18:08 schreef Fabio Luis Girardi via fpc-pascal: Hi all! I'm studying how to add a new target for the Freepascal compiler. The target is the missing armhf-FreeBSD. So I have looked at FPC guide (https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target) and looking

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Fabio Luis Girardi via fpc-pascal
Thanks for the hints! Em ter., 28 de jan. de 2020 às 16:41, Yuriy Sydorov escreveu: > On 28.01.2020 21:14, Fabio Luis Girardi via fpc-pascal wrote: > > Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov > escreveu: > > > > You need to add support of a new CPU to the

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Yuriy Sydorov
On 28.01.2020 21:14, Fabio Luis Girardi via fpc-pascal wrote: Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov mailto:j...@cp-lab.com>> escreveu: You need to add support of a new CPU to the existing freebsd target. The target would be arm-freebsd, since armhf is not treated as a

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Yuriy Sydorov
On 28.01.2020 19:08, Fabio Luis Girardi via fpc-pascal wrote: I'm studying how to add a new target for the Freepascal compiler. The target is the missing armhf-FreeBSD. So I have looked at FPC guide (https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target) and looking at Overview sec

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Fabio Luis Girardi via fpc-pascal
Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov escreveu: > You need to add support of a new CPU to the existing freebsd target. The > target would be arm-freebsd, since armhf is not > treated as a separate CPU by FPC. You need to create arm startup files in > the rtl/freebsd/arm folder. > Y