naegling/src/c/day1.c
Simon Brooke 882f991db4 Day 1. Assembly code is being generated, on a monkey see, monkey do basis;
but it doesn't link because of a missing library; and having moved source
files around the Makefile currently doesn't work.
2026-04-06 09:48:44 +01:00

26 lines
579 B
C

/**
* day1.c
*
* Grendel: a compiling Beowulf reimplementation.
*
* Day 1 of work towards a compiler... eventually..
*
* This is a straight copy of Noah Zentzis' work. There's no original work of
* mine here, yet
*
* (c) 2026 Simon Brooke <simon@journeyman.cc>
* Licensed under GPL version 2.0, or, at your option, any later version.
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
__attribute__((__cdecl__))
extern int lisp_entry();
int main(int argc, const char **argv) {
int val = lisp_entry();
printf("%d\n", val);
return 0;
}