A lightweight C-based compiler targeting the ARM Cortex-M4 architecture. This project is designed to be efficient enough to eventually run as a self-hosted compiler directly on Cortex-M4 hardware.
- Target: ARM Cortex-M4.
- Host Build: Windows x64 using GNU GCC.
- Feature Goal: Self-hosting capabilities and direct flashing to hardware.
- Read DOCS.md to gain an idea of how the language works.
main.ccompiler.c: Main filesrc.m4: Source code file (can be opened with the custom UDL).m4UDL.xml: My language's UDL file for use in notepad++.CMakeLists.txt: Build system configuration.bld.bat: Standard build script.remake.bat: Clean and cache refresh script.compile.bat: Command to compile a text file.
To compile the compiler on Windows (with GCC in path)
First navigate to the repository
cd %pathToRepo%Compile compiler :)
bldTo compile a source file
compile %sourcePath%OR:
%directoryOfCompilerExecutable%/CortexM4Compiler.exe %sourcePath%API used to compile a string
void assembleSource(const char* sourceString, const uint32_t programOrigin)Video of LED blink program working!