Sign in Join

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

Mailing lists / fpc-pascal / 2006-11

Nov. 30th Build of 2.1.1 for Sparc

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Wolfe, Robert

Just a quick email to let everyone know that the Nov. 30 build of FPC 2.1.1 for Sparc Linux is now available for direct download at:

http://www.net261.com:85/pages/robert/software/fpc/fpc-2.1.1.sparc-linux .tar.gz

I would like to port FPC over to FreeBSD for Sparc as well if at all possible, however, with a lack of an existing FPC compiler for that platform, I was not sure how I would go about doing that.

----
Robert Wolfe [MCP/Linux+], Computer Programmer/Analyst Roswell Park Cancer Institute, SR-DAR
Elm & Carlton Streets, Buffalo, NY
716-845-4916 |

This email message may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.

Micha Nelissen
to Wolfe, Robert
Robert wrote
I would like to port FPC over to FreeBSD for Sparc as well if at all possible, however, with a lack of an existing FPC compiler for that platform, I was not sure how I would go about doing that.

The compiler is only per architecture, so you only need to build a freebsd rtl using for example a sparc-linux compiler, then build a sparc-freebsd compiler using the freebsd RTL.

Also see the buildfaq.

Micha

Marco van de Voort
to Micha Nelissen
Show quoted text 8 lines
Wolfe, Robert wrote: > I would like to port FPC over to FreeBSD for Sparc as well if at all > possible, however, with a lack of an existing FPC compiler for that > platform, I was not sure how I would go about doing that. The compiler is only per architecture, so you only need to build a freebsd rtl using for example a sparc-linux compiler, then build a sparc-freebsd compiler using the freebsd RTL.

Yes. This pretty much boils down to:
- checking all structures.
- checking all syscalls against libc compiled (and then disassembled) tests,paying particular attention to the ones with 64-bit types.
- Creating startup code, which can be easiest done by modifying the makefiles in /usr/src/lib/csu and below to compile with -O2 -S, compile and then strip libc initialisation and finalisation from the result.