Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasrupp committed Feb 6, 2022
0 parents commit 4c090cc
Show file tree
Hide file tree
Showing 4 changed files with 416 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.out
*.a
*.s
*.o
main
.vscode/
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

default: qr

qr: main
cat main | qrencode -8 -o qr.png

main: main.c
clang -s -Os \
-nostdlib \
-ffreestanding \
-fno-stack-protector \
-fno-unwind-tables \
-fno-asynchronous-unwind-tables \
-fomit-frame-pointer \
-ffunction-sections \
-fdata-sections \
-Wl,--gc-sections \
-static \
-z noseparate-code \
-o main main.c
Loading

0 comments on commit 4c090cc

Please sign in to comment.