• m68k.info chat: with Volker Barthelmann on C-Compiler development

    From marblypup@yahoo.co.uk@21:1/5 to All on Thu May 27 09:48:26 2021
    Interesting!
    I tried getting the output of gcc to run on my 68010 homebrew some years ago, but, even though I wasn't explicitly calling any libc functions, gcc was outputting code that called, e.g., memcpy. (I couldn't get the source for that to compile.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carsten Strotmann@21:1/5 to marb...@yahoo.co.uk on Wed Jun 2 10:49:28 2021
    Hi,

    "marb...@yahoo.co.uk" <marblypup@yahoo.co.uk> writes:

    Interesting!
    I tried getting the output of gcc to run on my 68010 homebrew some
    years ago, but, even though I wasn't explicitly calling any libc
    functions, gcc was outputting code that called, e.g., memcpy. (I
    couldn't get the source for that to compile.)

    gcc has the options "-nostdlib", "-nodefaultlibs", "-nostartfiles", "-ffreestanding" to prevent linking with libc (which is done because
    libc contains some startup code).

    <https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/GCC/options/no/compare-nostartfiles-nodefaultlibs-nolibc-nostdlib>

    See also Guide: GCC and Bare Metal Programming <https://cs107e.github.io/guides/gcc/>

    The video recording from last weeks m68k chat is online now at: <https://m68k.info/#vbcc:c:compiler:video:may2021>


    --
    Carsten Strotmann

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)