Compare commits

...

10 commits

Author SHA1 Message Date
ee5fcc2e24 improve 2025-01-12 17:07:01 +01:00
dc6217d1b6 start using growable array buffer to make it BLAZINGLY EFFICIENT 2025-01-12 16:54:37 +01:00
b2d506b2ae ship it 2024-11-29 23:10:22 +01:00
741b1000b3 ASLR in action 2024-11-29 22:50:26 +01:00
96f2dcf8af GLORY TO SHADOWING 2024-11-29 22:14:42 +01:00
c0a2c8d1aa prepare stack 2024-11-23 13:07:29 +01:00
767cebafd8 more 2024-11-23 00:04:53 +01:00
923e6f2352 things 2024-11-22 23:54:09 +01:00
f22293c78e exit 2024-11-22 23:34:37 +01:00
16e5e33778 works 2024-11-22 21:46:24 +01:00
5 changed files with 635 additions and 117 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
a.out
*.o
.vscode

3
dump-main.gdb Normal file
View file

@ -0,0 +1,3 @@
set disassembly-flavor intel
set style enabled on
disas main

730
index.js

File diff suppressed because it is too large Load diff

12
input.c
View file

@ -1,6 +1,12 @@
//#include<elf.h> // #include<elf.h>
int main(int argc) int main(int argc, int argv)
{ {
// exit(42); int x = 100;
return thisismyfakeconstantbecauseidonthaveconstant(x - 1);
}
int thisismyfakeconstantbecauseidonthaveconstant(int x)
{
return 1 + 1;
} }

View file

@ -1,3 +1,3 @@
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell { { pkgs ? import <nixpkgs> { } }: pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nodejs_22 ]; nativeBuildInputs = with pkgs; [ nodejs_22 llvmPackages_18.lld llvmPackages_18.clang ];
} }