On 9 March 2010 07:24, James Paige <[email protected]> wrote: > On Mon, Mar 08, 2010 at 10:50:19PM +1300, Ralph Versteegen wrote: >> We now support FreeBSD! I'm not planning to test any other unixes >> aside from Darwin (tomorrow) and Mac OS X (day after) > > That sounds delicious! I assume it will be intel-macs only, but since > that is most of them these days; Yay! > > --- > James
Report from the field: After fixing the FB runtime lib so that it would compile on Darwin I attempted to compile a simple '? "hello"' program. Rather than setting up a cross-compilation environment, I compiled fbc with a Darwin target, compiled to assembly, and moved the assembly to a Mac. However, fbc doesn't know about the Darwin ABI stack frame 16 byte alignment requirement, so I had to hand edit the assembly to correct this and another simple mistake. After assembling and linking, it works! Probably the first FB program to run on a Mac. At this point I looked at the source to figure out if I could implement the ABI. To be honest, I've looked at fbc's source many times, but the AST and emitter code has always been gobbledygook to me and is (in my mind unnecessarily) 30+kLOC. I think I figured out how to align the stack in the function prologue, but it appears (I don't really know) that aligning when calling a function would be quite difficult even to someone who knows what they are doing. I'll post a feature request with my findings to the fbc bugtracker, but I don't expect them to implement it any time soon. Next I'll try -gen gcc. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
