004
13.02.2007, 06:26 Uhr
Olli
|
Falls es jemanden interessiert mit ACK zu crosscompilen - da muss man wohl noch ein wenig entwickeln. ACK als solches habe ich zum laufen bringen koennen unter FreeBSD:
Zitat: | Ceriel Jacobs wrote Hi,
it has been a very long time indeed since we worked on ACK, so the memory is a bit rusty. Anyway, to get ACK to run on a particular system, you need to do three things: - write a conversion program that converts the ack a.out format to the binary format for your specific machine. You can find several examples of such a program in the ACK source directory, in directories "mach/<machine>/cv". Maybe there is one already that looks a bit like the format that you need. - write a systemcall interface. There is one in mach/z8000/libmon, but it may not be suitable for your system. It may give you an idea, however, of what you need to do. For every system call, you have to put the parameters where the kernel expects them, and then do the instruction that causes the kernel to perform the system call. This is all typically undocumented stuff, but usually you can find out how it works by writing a little C-program that does the system call you want, compile it statically using your native C compiler, and then disassembling the binary. - finally, you have to add a phase to the ack description for z8000 so that ack calls your conversion program. the description is in the ACK source directory, in lib/z8000/descr. There are plenty of machine descriptions that have a conversion program, see for instance lib/sun3/descr.
I hope this helps.
Best wishes,
Ceriel Jacobs
|
-- P8000 adventures: http://pofo.de/blog/?/categories/1-P8000 |