4 ms·
another question please i believe cross compilation (ability to compile to many platforms from one source code, from one dev machine and target many other plat
by systems 10y ago
another question please
i believe cross compilation (ability to compile to many platforms from one source code, from one dev machine and target many other platforms)
and the ability to easily mix assembly with code
are touted as some of freepascal/lazarus special features/edges, is this correct, or is this not very special or particularly powerfull in freepascal/lazarus
- ALB42 10y agoEspecially powerful is the LCL (Lazarus component library) a GUI wrapper library which makes it possible to "write once compile everywhere" (Slogan of Lazarus). An in difference to QT or gtk and such toolskits it looks native on every platform because in the backend LCL can use GTK, GTK2, QT, Win-API or in this case MUI to create the GUI, so the application look not like aliens but native.
- narag 10y agoLast time I asked, cross compilation is not easy feat. No problem compiling the same source for different targets, but from the same machine? There's no easy way, specially for Macs. Mind you it's not impossible, but it's not the recommended path. Assembly you can insert it directly in code. To reconcile that with the prior question, use ifdefs. Edit: the reason they gave me is that the linker (IIRC, GNU tools) needs the target DLLs to work properly. A good solution would be using a Mac as development machine with VMs for the rest of targets.
- noir_lord 10y agoNot sure they are special features as other languages have them but Free Pascal does have excellent cross-platform support and yes using assembly inline is pretty nice. Also the LCL is great in that they implement it for a lot of the platforms they support so you can do RAD on Windows and (fairly) easily get the same program running on Linux and vice versa.