Recent

Author Topic: What about the ARM CPU's?  (Read 2271 times)

recog1

  • New member
  • *
  • Posts: 7
What about the ARM CPU's?
« on: April 29, 2021, 06:57:22 pm »
Good for LAZ in the x86 world of machines! ...  :D
What about the ARM CPU's? ... Particularly my little RASP PI 4?

[Edited title; split from Lazarus Announcements]
« Last Edit: April 30, 2021, 01:06:04 am by trev »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • Compiler Developer
Re: What about the ARM CPU's?
« Reply #1 on: April 30, 2021, 09:13:01 am »
Free Pascal and Lazarus are working on ARM CPUs for years already. See here.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: What about the ARM CPU's?
« Reply #2 on: April 30, 2021, 09:42:47 am »
In case OP doesn't know how to follow a link: I think FPC's supported ARM since before the Raspberry Pi came out. I was using it back when ARM-based NSLU2 "Slugs" were a thing, and compiling and running Lazarus natively on them.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

ccrause

  • Hero Member
  • *****
  • Posts: 843
Re: What about the ARM CPU's?
« Reply #3 on: April 30, 2021, 11:52:38 am »
Some more details to support the previous replies:

ARM support was added to FPC in 2004 and appeared in stable release 2.0.  Which is also as far back as the svn history goes.

Raspberry Pi was released in February 2012 and the first report of running Lazarus on a Pi (that I could find) was around May 2012.

Thaddy

  • Hero Member
  • *****
  • Posts: 14157
  • Probably until I exterminate Putin.
Re: What about the ARM CPU's?
« Reply #4 on: April 30, 2021, 12:27:23 pm »
FPC was already included in the repositories for Raspbian since its first release... So since feb 2012.
Specialize a type, not a var.

hansotten

  • Jr. Member
  • **
  • Posts: 88
Re: What about the ARM CPU's?
« Reply #5 on: April 30, 2021, 12:58:59 pm »
Some more details to support the previous replies:

ARM support was added to FPC in 2004 and appeared in stable release 2.0.  Which is also as far back as the svn history goes.

Raspberry Pi was released in February 2012 and the first report of running Lazarus on a Pi (that I could find) was around May 2012.
I  used FPC first in March/April 2012 on my first Pi 1.  Runs fine for CLI apps, the FPC IDE looked familiar to e.g Turbo Pascal 7.
 
Lazarus was a bit too heavy. After developing and debugging on a bigger machine, and with swap file enlargement just enough to compile.  The desktop experience on the first RPi's is, eh ..
On a RPi14 with a SSD  it feels close to my I7 desktop.

I went to many recipes of getting FPC and Lazarus on the Pi's.  Still not as easy as installing/upgrading on Windows ... And for the Zero I do use the compiler options for the ARM11.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: What about the ARM CPU's?
« Reply #6 on: April 30, 2021, 01:48:17 pm »
Note too that fpc works perfectly on ARM aarch64 with Raspberry OS 64 bit (much better than some "ténors" like Gimp or Firefox for ARM aarch 64 compiled with a other compiler).

Fre;D
« Last Edit: April 30, 2021, 01:49:54 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

_Bernd

  • New Member
  • *
  • Posts: 21
Re: What about the ARM CPU's?
« Reply #7 on: April 30, 2021, 01:52:20 pm »
I finished my first ARM FPC project in December 2010.

It consisted of a self-developed circuit board with an AT91SAM7S256 (ARMv4T/ARM7TDMI) microcontroller and an AT91RM9200 (ARMv4T/ARM9TDMI) processor running Linux (2.6.28.2/OABI/FPC 2.2.0). For the AT91SAM7S256 I had used the GBA port (FPC 2.3.1, Rev 11880).

The devices are still running 24/7 :-)

Regards, Bernd.

 

TinyPortal © 2005-2018