mirror of
https://github.com/samsonjs/compiler.git
synced 2026-03-25 08:45:52 +00:00
The supporting infrastructure includes a C program for reading a binary blob of x86 code and wrapping it in an ELF executable for Linux x86. Unsure about getting the data for other sections of the binary besides .text.
48 lines
276 B
Text
48 lines
276 B
Text
a=9
|
|
aa=10
|
|
somethinglong=65536
|
|
x=5*(3-5)
|
|
c=a-1
|
|
d=-1
|
|
f=x*2+2
|
|
g=f-27/9
|
|
h=g-8/2
|
|
j=h-4*(5+5+5)
|
|
k=h+85
|
|
|
|
i 1
|
|
d=3
|
|
i 1 c=4
|
|
e
|
|
e
|
|
i1d=3
|
|
i1c=4
|
|
ee
|
|
|
|
i 1
|
|
d=3
|
|
i 1 c=4
|
|
e
|
|
l
|
|
d=2
|
|
e
|
|
|
|
w 0
|
|
a = a + 1
|
|
e
|
|
|
|
u 1
|
|
a = a - 1
|
|
i 1
|
|
b
|
|
e
|
|
e
|
|
|
|
r
|
|
cc = c * 2
|
|
i 1
|
|
b
|
|
e
|
|
e
|
|
|
|
xitcode=a-a
|