Skip to content

ilyakurdyukov/littlecc-e2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elbrus 2000 (e2k) backend to LCC (Little C Compiler)

Patching the LCC sources

$ git clone --depth=1 https://github.com/drh/lcc lcc-src
$ patch -N -p1 -d lcc-src < lcc-e2k.patch
$ cp e2k.c lcc-src/src/e2k.md

Building

$ mkdir -p lcc-build/gcc lcc-build/include
$ ( cd lcc-src && make BUILDDIR=../lcc-build HOSTFILE=etc/linux.c all )
$ ln -s ../cpp lcc-build/gcc/cpp
$ cp include/* lcc-build/include/

Example usage

$ export LCCDIR="$(pwd)/lcc-build"
$ lcc-build/lcc -target=e2k/linux fannkuch.c -S -o fannkuch.s
$ cc fannkuch.s -o fannkuch && ./fannkuch 7 8 9

About

Elbrus 2000 (e2k) backend to LCC (Little C Compiler)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy