[fpc-pascal] Access to RS232 ports with fpc

Marco van de Voort marcov at stack.nl
Mon Nov 2 09:13:03 CET 2009

In our previous episode, Holger Bruns said:
> The only way to get rid of this problem is a direct port access. But 
> direct port access is only possible for the first 200 port addresses. A 
> "port" array is not yet implemented, and the required higher port 
> addresses are strictly ruled out from every use through compiled fpc 
> programs. I do not understand this harsh policy. And I have no idea to 
> rule this policy out. If there is any possibility to get access to all 
> ports on the system without access error messages, please let me know. 
> If I need to alter the compiler, is there a patch available? Or should I 
> use gcc rather than fpc to match my ideas?
> The real sad thing is, that one cannot produce software for Linux, based 
> on the restricted free pascal compiler. I am really disappointed.

WHere is this limitation? I'm not aware that FPC has a limitation that GCC
hasn't. More probably it is an OS limitation, or do you need to ask
permission for higher portnumbers with ioperm. 

More information about the fpc-pascal mailing list