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.
This commit is contained in:
parent
8e9ad73229
commit
882f991db4
13 changed files with 206 additions and 36 deletions
26
src/c/day1.c
Normal file
26
src/c/day1.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue