Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.33 KB

quirks.md

File metadata and controls

53 lines (44 loc) · 1.33 KB

Quirks.

Building and running

  • names get mangled when I build. There are ways to avoid it but, meh. The tutorial had the following output:

        .text
        .globl scheme_entry
        .type scheme_entry, @function
    scheme_entry:
        movl $~s, %eax" x
     ret"

    gcc mangles it. It becomes:

        .text
        .globl _scheme_entry
        .type scheme_entry, @function
    _scheme_entry:
        movl $~s, %eax" x
     ret"

    so........... i just changed it to that.

  • .type directive in asm not recognized on Mach-O ABI (application binary interface). Unfortunately this is what mac uses. So, what was

        .text
        .globl _scheme_entry
        .type scheme_entry, @function
    _scheme_entry:
        movl $~s, %eax" x
     ret"

    should instead be

        .text
        .globl _scheme_entry
    
    _scheme_entry:
        movl $~s, %eax" x
     ret"
  • tests-driver.scm was missing a definition, add-tests-with-string-output-noboot , which caused the test driver to fail. I just copied over add-tests-with-string-output and it works fine now. This is what i get for using stuff i find online.

  • compile-program needed to be defined at the top of test runner, or chez would complain that it wasn't defined. Thank you, internet.