Skip to main content
Home Forums 68kMLA Dev on Mac LC III and Classic II — #26
Post #26 by nglevin
Source Forum68kMLA
CategoryDevelopment
Post DateSun, 15 Mar 2015 - 00:18
Original URLhttps://68kmla.org/bb/threads/dev-on-mac-lc-iii-and-classic-ii.1320/
Post
Excellent, verified that demo looks good on my Mac, too.

I've sent you a PM on this, but I think it bears repeating for the forum. On a 68k compiler, large variables should be declared in "far data" instead of the default of "near data". There's a "far" keyword that CW supports, and there's also a pair of compiler flags that can be used to declare variables as far data; "#pragma far_data on" for the start and "#pragma far_data off" for the end.

Source: The CodeWarrior C Compiler Reference 3.2, still available on Freescale's website; http://cache.freescale.com/files/soft_dev_tools/doc/ref_manual/CCOMPILERRM.pdf

mp.ls