Re: Switching to Linux and C

From: Per Olofsson <>
Date: Wed, 23 Aug 2017 03:41:32 -0400
Message-Id: <>
On Wed, Aug 23, 2017, at 03:20 AM, Baltissen, GJPAA (Ruud) wrote:
> Another thing: so far I program in Free Pascal for non-DOS applications
> like my (dis)assemblers. I have tried several times to switch to C. But
> what put me off so far several times was that if I wrote a program that
> would compile under compiler A, it wouldn't under compiler B or C. I have
> seen the huge list of available C compilers for Linux so the first idea
> is just to stick to the one used for compiling VICE (gcc AFAIK ?). But
> any good argument is welcome!

I'm guessing that A, B, or C was MSVC++? It's C support is somewhat
lacking, but as of 2015 it at least has C99 support. But the general
rule is stick to POSIX and avoid compiler specific extensions, and the
code should compile on every compliant system. There are three major
revisions of the standard, C89 (aka ANSI C), C99, and C11. gcc would be
my suggestion if you plan on targeting Linux, Windows, and macOS, though
by default it supports the latest standard with some custom extensions.
Use "c99" as the binary instead of "gcc", or pass the "-std=c99" flag to

  Per Olofsson

       Message was sent through the cbm-hackers mailing list
Received on 2017-08-23 08:00:03

Archive generated by hypermail 2.2.0.