Target Darwin: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Target Darwin
| Old | New | Line | |
|---|---|---|---|
| 1 | + | *(macOS only)* | |
| 2 | + | ||
| 3 | + | *(iOS only)* | |
| 4 | + | ||
| 5 | + | ## Introduction | |
| 6 | + | ||
| 7 | + | Darwin is the target for macOS and iOS, both PowerPC, ARM and ARM64, i386 and X86_64. Programs may also be run on a machine with only Darwin installed. | |
| 8 | + | ||
| 9 | + | ## Installation | |
| 10 | + | ||
| 11 | + | See [[Installing Lazarus on macOS]]. | |
| 12 | + | ||
| 13 | + | ## Usage | |
| 14 | + | ||
| 15 | + | 1\) [Lazarus IDE](http://forum.lazarus.freepascal.org) | |
| 16 | + | ||
| 17 | + | Lazarus is a Delphi-style RAD environment | |
| 18 | + | ||
| 19 | + | 2\) [Lightweight IDE](http://www.ragnemalm.se/lightweight/) | |
| 20 | + | ||
| 21 | + | A free IDE in the classic Mac style | |
| 22 | + | ||
| 23 | + | 3\) Any Editor (AlphaX, BBedit, ...) and command line (fpc your_pascal_program.pas) | |
| 24 | + | ||
| 25 | + | ## Universal binaries | |
| 26 | + | ||
| 27 | + | Normally for each processor - operating system combination there is one executable, but in macOS you can combine an aarch64 (ARM64) binary and an x86_64 binary into a so-called "universal binary" or "multi-architecture binary" that will run on both Apple ARM64 processors and Intel 64 bit processors. To do this the ARM64 and x86_64 executables have to be compiled separately and then combined using the `lipo` command line utility. | |
| 28 | + | ||
| 29 | + | It is also possible to combine a PowerPC binaries and an x86 binaries into a single combined binary using the `lipo` command line tool. You would need to first [download the PowerPC cross-compiler](https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/) so you only need to use `ppcppc` instead of `fpc` to build your project to generate the PowerPC binary. If you have a PowerPC computer, then the simplest solution is to build the x86 binary on a different computer with x86 architecture. | |
| 30 | + | ||
| 31 | + | ## See also | |
| 32 | + | ||
| 33 | + | - [[Portal:Mac|Mac Portal]]. | |
| 34 | + | - [[macOS Big Sur changes for developers|Creating a universal binary for aarch64 and x86_64]]. | |
| 35 | + | - [[Target MacOS]] for PowerPC processors. | |
| 36 | + | ||
| 37 | + | --- | |
| 38 | + | *From the Free Pascal wiki, page "Target Darwin", as it stood on 2022-03-28 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 39 | + | Category: iOS | |
| 40 | + | Category: macOS |
