https://github.com/ipankajg/ceed
A tiny x86 compiler with ELF and PE target
https://github.com/ipankajg/ceed
Last synced: 7 months ago
JSON representation
A tiny x86 compiler with ELF and PE target
- Host: GitHub
- URL: https://github.com/ipankajg/ceed
- Owner: ipankajg
- License: bsd-2-clause
- Created: 2017-01-08T21:01:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T03:19:15.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T23:02:23.025Z (about 1 year ago)
- Language: C
- Homepage: http://logicpundit.com/blog/ceed
- Size: 20.5 KB
- Stars: 180
- Watchers: 8
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
- AwesomeCompiler - ceed
README
Ceed
----
Ceed is a tiny open source compiler for x86 Linux and Windows. It can compile
a high level language source code into ELF or PE executable. Design and
implementation of Ceed is described at: http://logicpundit.com/blog/ceed
Folders
-------
src - Contains source code for Ceed compiler
tst - Contains some test program for Ceed compiler
lib - Contains asm code for functions injected in Ceed output
Compile
-------
// Linux or Cygwin
cd src
make ceed
Usage
-------
To create ELF executable: ./ceed <
To create PE executable: ./ceed -pe <
Example
-------
./ceed < math.e
chmod +x a.exe or chmod +x a.out to make the file executable.
On Windows, even if you produce a.exe in cygwin, you can only run it in cmd
prompt. If you run output file in cygwin, it won't work.
Notes
-----
- Only 32-bit Linux and Windows are supported
- Code generated by Ceed is sub-optimal and may contain bugs. Only use for
learning purpose.