-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
139 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
include "nonstdio" | ||
|
||
intern (printi2thesquequal n) | ||
|
||
public (main argc argv...) { | ||
(print "Hello World!") | ||
(print "Hello World!\n") | ||
return 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
constant O_RDONLY = 0 | ||
constant O_WRONLY = 1 | ||
constant O_RDWR = 2 | ||
|
||
constant SYS_EXIT = 1 | ||
|
||
|
||
constant SYS_READ = 3 | ||
constant SYS_WRITE = 4 | ||
|
||
|
||
constant SYS_OPEN = 5 | ||
constant SYS_CLOSE = 6 | ||
constant SYS_CLOSE = 6 | ||
|
||
constant O_RDONLY = 0 | ||
constant O_WRONLY = 1 | ||
constant O_RDWR = 2 | ||
|
||
|
||
constant SYS_MMAP = 192 | ||
constant SYS_MUNMAP = 91 | ||
|
||
constant PROT_NONE = 0 | ||
constant PROT_READ = 1 | ||
constant PROT_WRITE = 2 | ||
constant PROT_EXEC = 4 | ||
|
||
constant MAP_SHARED = 1 | ||
constant MAP_PRIVATE = 2 | ||
constant MAP_FILE = 0 | ||
constant MAP_ANONYMOUS = 0x1000 | ||
|
||
constant MAP_FAILED = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
constant O_RDONLY = 0 | ||
constant O_WRONLY = 1 | ||
constant O_RDWR = 2 | ||
|
||
constant SYS_EXIT = 60 | ||
|
||
|
||
constant SYS_READ = 0 | ||
constant SYS_WRITE = 1 | ||
|
||
|
||
constant SYS_OPEN = 2 | ||
constant SYS_CLOSE = 3 | ||
constant SYS_CLOSE = 3 | ||
|
||
constant O_RDONLY = 0 | ||
constant O_WRONLY = 1 | ||
constant O_RDWR = 2 | ||
|
||
|
||
constant SYS_MMAP = 9 | ||
constant SYS_MUNMAP = 11 | ||
|
||
constant PROT_NONE = 0 | ||
constant PROT_READ = 1 | ||
constant PROT_WRITE = 2 | ||
constant PROT_EXEC = 4 | ||
|
||
constant MAP_SHARED = 1 | ||
constant MAP_PRIVATE = 2 | ||
constant MAP_FILE = 0 | ||
constant MAP_ANONYMOUS = 0x1000 | ||
|
||
constant MAP_FAILED = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
constant SYS_EXIT = 0x2000001 | ||
|
||
|
||
constant SYS_READ = 0x2000003 | ||
constant SYS_WRITE = 0x2000004 | ||
|
||
|
||
constant SYS_OPEN = 0x2000005 | ||
constant SYS_CLOSE = 0x2000006 | ||
|
||
constant O_RDONLY = 0 | ||
constant O_WRONLY = 1 | ||
constant O_RDWR = 2 | ||
|
||
|
||
constant SYS_MMAP = 0x20000C5 | ||
constant SYS_MUNMAP = 0x2000049 | ||
|
||
constant PROT_NONE = 0 | ||
constant PROT_READ = 1 | ||
constant PROT_WRITE = 2 | ||
constant PROT_EXEC = 4 | ||
|
||
constant MAP_SHARED = 1 | ||
constant MAP_PRIVATE = 2 | ||
constant MAP_FILE = 0 | ||
constant MAP_ANONYMOUS = 0x1000 | ||
|
||
constant MAP_FAILED = -1 |