Skip to content

Comment on The Cscript Style Guide – CScript is the standard C

Comments

To compile CScript to C:

apt install gcc-dev

cat hello.cs > hello.c

gcc hello.c

Nope… you need to follow the instructions:

  gcc -std=gnu89 -m32 -fno-builtin
because GCC defaults to ISO C23 these days, and that will not work, and neither will anything where int and a pointer aren't the same size :)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.