Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-02

OOP in FreePascal ARM-Embedded

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juan Duran

Hi there,

Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform?

Cheers

Mark Morgan Lloyd
to Juan Duran
Juan Duran wrote
Hi there, Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform?

What are you looking for that isn't already documented as being provided?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Michael Ring
to Juan Duran: Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal…

Objects work fine on ARM embedded, the documentation on this topic might be a little thin....

The minimum thing you need to do is to initialize the heap, after you have a valid Heapmanager you can use objects out of the box:

program hellofpc;
{$mode objfpc}
uses
   heapmgr;
begin
   RegisterHeapBlock(pointer($20008000),$1000); //Heap config for STM32F103
...
..
Juan Duran wrote 11 lines
Hi there, Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform? Cheers _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Juan Duran
to Graeme Geldenhuys: OOP works fine already on that platform... what specific are you looking for? - Graeme -…
Graeme Geldenhuys wrote 11 lines
On 2013-02-27 08:28, Juan Duran wrote: > Is anybody working on being able to uses classes, methods, etc (OOP) in > freepascal compiler for ARM embedded platform? OOP works fine already on that platform... what specific are you looking for? Regards, - Graeme -

Sorry about my delay answering!!!
I just wanted to know details about it (docs, some examples with code and compilation howto would be of great help)

Thanks

Mark Morgan Lloyd
to Juan Duran
Juan Duran wrote 14 lines
Graeme Geldenhuys writes: > On 2013-02-27 08:28, Juan Duran wrote: >> Is anybody working on being able to uses classes, methods, etc (OOP) in >> freepascal compiler for ARM embedded platform? > OOP works fine already on that platform... what specific are you looking > for? > > Regards, > - Graeme - > Sorry about my delay answering!!! I just wanted to know details about it (docs, some examples with code and compilation howto would be of great help)

http://www.freepascal.org/docs.var

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]