5/6/2023 0 Comments Futurebasic 5 gameThe TBalias statement in FB allows old Toolbox names to be kept and applied to new functions when introduced by Apple. Override local fn SomeFunction, override runtime SomeRuntimeThing (but override _someConst = 1 IS supported)ģ. Not currently implemented įlushevents // instead use the Toolbox: call FlushEvents( _everyEvent, 0 ) endassemįB assembler is incompatible with gcc (even on PPC)įBII pseudo-record use true record insteadĢ. Updating legacy source code to a modern equivalent benefits from newer features and helps preserve the longevity of the source code.ġ. However, a modern equivalent to achieve a similar goal often exists. Intel doesn't support PowerPC assembler -duh), some legacy syntax cannot be implemented. Some things that have to be done differently in FBtoC:ĭifferent syntax also, label *must* precede line in which proc appearsįeatures not implemented ĭue to FBtoC operational constraints and other more obvious constraints (e.g. User Libraries has the same function as in FB, except that the little-known special file UserFloatPrefs is ignored by FBtoC.ĭifferences Between FutureBASIC and FBtoC Mildly bad news In general, an existing FB Headers file will not work if simply copied into this folder. Most of them needed modification to make them work with FBtoC. The Headers folder contains a subset of the standard FB Headers files. Changing any of these files is likely to break FBtoC. The build-goodies folder contains pretranslated parts of the runtime. The folder containing FBtoC.app must also contain three special folders: build_goodies, Headers, and User Libraries. Cross-development is an optional part of the Xcode Tools install (from the OS X DVD or CDs).Īpple Developer Tools Documentation Installing FBtoC The Finder view (below) of the Developer folder shows the SDKs after installation. Without /Developer/SDKs/MacOSX10.4u.sdk, only the native architecture of your Mac can be built. To create universal binaries, you must have OS X 10.4 or higher, gcc 4.0 or higher, and install the Cross-development SDKs. Xcode Tools), from your OS X install CDs or DVD. Before using FBtoC you should have installed Apple's free Developer Tools (a.k.a. Most development and testing has been done on OS X 10.4 and 10.5. System Requirements įBtoC should work on OS X 10.3.9 and later. The Apple Develop Tools, available on your OS C installation DVD or from Apple's Developer Connection Web site.The FBtoC installation files and documentation from: FBtoC Project Page.Before continuing, you will need to obtain the following: This section describes the installation of both FutureBASIC and FBtoC. And then there's the coveted Universal Binary status!.Unlike FB, there is no 32k limit on local function variables.On an Intel Mac, crash reports are interpretable, unlike those of a legacy FB app.(window 1 : print "Hello, world!" : do HandleEvents : until gFBQuit).Tools include the Xcode debugger and the performance analyser Shark. Apple's modern development tools work on apps built by FBtoC.FBtoC can automatically copy specified files into the app's resources (see later).Framework access is much simpler than in FB (see later).Native Intel code runs ≈3 times faster (or more) than PPC code under Rosetta.The compiler (gcc) has more powerful optimizations for speed than the FB compiler. Why translate to C when I code in BASIC? Using FBtoC normally requires no detailed knowledge of C. The diagrams below illustrate the process:įB source code → legacy app (PPC-only, CFM format, resource fork.)įB source code → C source code → OS X app package with Carbon universal binary in Mach-O formatįBtoC translates appearance projects and standalone files, and console-type text-only standalone files. Translating the code to C allows Apple's developer tools to create a universal binary.
0 Comments
Leave a Reply. |