Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-11

Mac G3 and FPC

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tony Maro

I have a client who wants to give me a G3 laptop for future development work. (yes, I said give - no cost on my part.)

I know that FPC has some functionality starting with testing on the G4...

I know almost NOTHING about Mac's, so my question is, is the G3 so different from the G4 that I can't expect to run FPC 1.9.x on it within any reasonable timeframe (or ever)?

Yes, I know it's initial stages right now, but a long term goal for this project is to compile a Lazarus applictation for Mac - 1 year / 1.5 years away has been discussed

Thanks,
Tony Maro

Reply by email

Balogh, Karoly (Charlie/iNQ
to Tony Maro

Hi,

Tony Maro wrote
I know almost NOTHING about Mac's, so my question is, is the G3 so different from the G4 that I can't expect to run FPC 1.9.x on it within any reasonable timeframe (or ever)?

FPC is already working well on all PPC CPU's including 603, 604, G3 (750 series), G4 (7400 series) and even G5 (9x0 series) in 32bit mode. (Tested.) I'm not sure about the very ancient 601 series, which had some compatibility issues/bugs compared to the recent PPC's, but this shouldn't affect you.

Bye,

Charlie/iNQ [ Genesi Pegasos ][ G4e/1000 512MB 60GB IDE Radeon 7500 ] [ Commodore Amiga 2000 68060/50 128MB 20GB SCSI PicassoIV ] [ Escom Amiga 1200 68060/50 96MB 6GB 2,5" IDE ]

Reply by email

Florian Klaempfl
to Tony Maro: I have a client who wants to give me a G3 laptop for future development work. (yes, I…
Tony Maro wrote 12 lines
I have a client who wants to give me a G3 laptop for future development work. (yes, I said give - no cost on my part.) I know that FPC has some functionality starting with testing on the G4... I know almost NOTHING about Mac's, so my question is, is the G3 so different from the G4 that I can't expect to run FPC 1.9.x on it within any reasonable timeframe (or ever)? Yes, I know it's initial stages right now, but a long term goal for this project is to compile a Lazarus applictation for Mac - 1 year / 1.5 years away has been discussed

It should work perfectly on a G3 as long as MacOSX runs on it :)

Reply by email

Marco van de Voort
to Balogh, Karoly (Charlie/iNQ: FPC is already working well on all PPC CPU's including 603, 604, G3 (750 series), G4…
Show quoted text 11 lines
On 2004-11-17, Tony Maro wrote: > I know almost NOTHING about Mac's, so my question is, is the G3 so > different from the G4 that I can't expect to run FPC 1.9.x on it within > any reasonable timeframe (or ever)? FPC is already working well on all PPC CPU's including 603, 604, G3 (750 series), G4 (7400 series) and even G5 (9x0 series) in 32bit mode. (Tested.) I'm not sure about the very ancient 601 series, which had some compatibility issues/bugs compared to the recent PPC's, but this shouldn't affect you.

For 603 it needs an extra compiler define when cycling. OPT='-dppc603

Otherwise, depending on the OS, it will cause alignment exceptions or (if the OS "fixes" it) possible performance detoriation.

Reply by email

Jonas Maebe
to Marco van de Voort
Marco van de Voort wrote
Otherwise, depending on the OS, it will cause alignment exceptions or (if the OS "fixes" it) possible performance detoriation.

I think NetBSD and maybe some other obscure OSes are the only ones that absolutely need this. Under Mac OS X, the performance loss of not using -dppc603 will be minimal, because the RTL changes that this causes are overridden by libc routines. The impact of the changes in the compiler is much smaller.

Jonas

Reply by email

Florian Klaempfl
to Jonas Maebe
Jonas Maebe wrote 13 lines
On 18 nov 2004, at 09:05, Marco van de Voort wrote: > Otherwise, depending on the OS, it will cause alignment exceptions or (if > the OS "fixes" it) possible performance detoriation. I think NetBSD and maybe some other obscure OSes are the only ones that absolutely need this. Under Mac OS X, the performance loss of not using -dppc603 will be minimal, because the RTL changes that this causes are overridden by libc routines. The impact of the changes in the compiler is much smaller.

I guess the bigger problem is to get a native (carbon based) lazarus running :)

Reply by email

Marco van de Voort
to Jonas Maebe: I think NetBSD and maybe some other obscure OSes are the only ones that absolutely need…
Show quoted text 11 lines
On 18 nov 2004, at 09:05, Marco van de Voort wrote: > Otherwise, depending on the OS, it will cause alignment exceptions or > (if > the OS "fixes" it) possible performance detoriation. I think NetBSD and maybe some other obscure OSes are the only ones that absolutely need this. Under Mac OS X, the performance loss of not using -dppc603 will be minimal, because the RTL changes that this causes are overridden by libc routines. The impact of the changes in the compiler is much smaller.

Ah, I thought it was FPU alignment?

Reply by email

Jonas Maebe
to Marco van de Voort
Marco van de Voort wrote 9 lines
> I think NetBSD and maybe some other obscure OSes are the only ones > that > absolutely need this. Under Mac OS X, the performance loss of not > using > -dppc603 will be minimal, because the RTL changes that this causes are > overridden by libc routines. The impact of the changes in the compiler > is much smaller. Ah, I thought it was FPU alignment?

It is. The compiler and RTL use FPU operations to copy data 8 bytes at a time (instead of 4 bytes at a time). You only get an exception on a 603(e) if you try to load a double from (or store one to) an address which is not 4 byte aligned. Double variables are aligned on 4 byte boundaries by default by the compiler, so there is no problem there. Problems only occur for copy operations.

Jonas

Reply by email

Tony Maro
to Vincent Snijders: Maybe Tony can ask for some development Macs for the lazarus team too. ;-) Vincent.
Vincent Snijders wrote 12 lines
Florian Klaempfl wrote: > > I guess the bigger problem is to get a native (carbon based) lazarus > running :) > Maybe Tony can ask for some development Macs for the lazarus team too. ;-) Vincent.

Uh... sure!

Thanks for the responses guys. It'll be fun to A) learn how to turn on a Mac, and B) learn how to run FPC and C) scream when I can't get Lazarus working.

haha

-Tony

Reply by email