Forum > Embedded

Anyone wants to share an interesting/cool embedded Pascal project?

<< < (2/2)

MarkMLl:

--- Quote from: ccrause on February 26, 2022, 10:30:32 pm ---@Mark, yes the Arduino library ecosystem is very handy, but a lot of things like flashing an LED, reading a pin, using timers and so forth is easy enough to code from scratch in Pascal. This should be enough to tackle simple projects.

--- End quote ---

Agreed. That's /particularly/ the case when one follows through the code to read or change the state of a bit: Arduino (and others that I've looked at) try to make this general but the result is a sequence of complex function calls that the compiler can't optimise... the collective developers appear either unconcerned or unaware.

But unfortunately, no matter how we loathe them, some things we're stuck with :-(

https://imgs.xkcd.com/comics/new_pet.png

MarkMLl

PascalDragon:

--- Quote from: MarkMLl on February 26, 2022, 09:31:58 pm ---I think that the real problem is that the value of the Arduino infrastructure is the libraries it's accumulated, which generally speaking assume C++ calling conventions and name mnagling.

--- End quote ---

Which is not necessarily a problem. ;)

MarkMLl:

--- Quote from: PascalDragon on February 27, 2022, 11:39:36 am ---
--- Quote from: MarkMLl on February 26, 2022, 09:31:58 pm ---I think that the real problem is that the value of the Arduino infrastructure is the libraries it's accumulated, which generally speaking assume C++ calling conventions and name mnagling.

--- End quote ---

Which is not necessarily a problem. ;)

--- End quote ---

So to what extent can interaction between FPC and C++ be promoted? The risk is that problems would cause vexation to both the FPC and embedded communities: and as a minor player FPC can't IMO afford to be vexatious.

MarkMLl

PascalDragon:

--- Quote from: MarkMLl on February 27, 2022, 11:55:36 am ---
--- Quote from: PascalDragon on February 27, 2022, 11:39:36 am ---
--- Quote from: MarkMLl on February 26, 2022, 09:31:58 pm ---I think that the real problem is that the value of the Arduino infrastructure is the libraries it's accumulated, which generally speaking assume C++ calling conventions and name mnagling.

--- End quote ---

Which is not necessarily a problem. ;)

--- End quote ---

So to what extent can interaction between FPC and C++ be promoted? The risk is that problems would cause vexation to both the FPC and embedded communities: and as a minor player FPC can't IMO afford to be vexatious.

--- End quote ---

cppclass doesn't handle all types yet (e.g. signed char), so declarations might fail because the wrong mangled name is generated, and there's no way to deal with operator overloads (if any) yet. So right now I'd advertise it as “experimental” at most.

Navigation

[0] Message Index

[*] Previous page

Go to full version