Compare commits
10 commits
076d8c3d6e
...
ee5fcc2e24
| Author | SHA1 | Date | |
|---|---|---|---|
| ee5fcc2e24 | |||
| dc6217d1b6 | |||
| b2d506b2ae | |||
| 741b1000b3 | |||
| 96f2dcf8af | |||
| c0a2c8d1aa | |||
| 767cebafd8 | |||
| 923e6f2352 | |||
| f22293c78e | |||
| 16e5e33778 |
5 changed files with 635 additions and 117 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
a.out
|
||||
*.o
|
||||
.vscode
|
||||
3
dump-main.gdb
Normal file
3
dump-main.gdb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set disassembly-flavor intel
|
||||
set style enabled on
|
||||
disas main
|
||||
12
input.c
12
input.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ nodejs_22 ];
|
||||
{ pkgs ? import <nixpkgs> { } }: pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ nodejs_22 llvmPackages_18.lld llvmPackages_18.clang ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue