/lle

low level experiments

Primary LanguageCThe UnlicenseUnlicense

Structure

.
├── build
│   ├── bin
│   │   └── lle
│   └── cmake
├── CMakeLists.txt
├── driver.c
├── include
│   ├── builtin.h
│   ├── def.h
│   ├── print.h
│   ├── sbrk.h
│   ├── string.h
│   └── system.h
├── README.md
├── run.sh
└── src
    ├── print.c
    ├── sbrk.c
    ├── string.c
    └── system.c

Commands

$ ./run.sh [build/make]
$ ./run.sh rebuild
$ ./run.sh clean
$ ./run.sh

Make sure to set the run file to be executable.

$ chmod +x run.sh

./run make/build :

Both do the same thing.
They run CMakeList.txt and then the Makefile generated by CMake.

$ ./run.sh make
$ ./run.sh build

./run rebuild :

Deletes previously generated files and then runs CMake and Make

$ ./run.sh rebuild

./run clean :

Removes the build/ directory.

$ ./run.sh clean

./run :

If there is binary executable inside of build/bin it will run it.
If there isn't, it will run the build commands for you...

$ ./run.sh

Chaining ./run :

Generally while modifying the source code, you should rebuild the project and rerun the executable file.

$ ./run.sh rebuild; ./run.sh