mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:37:47 +00:00
Import all this stuff into a single repo called Serenity.
This commit is contained in:
commit
5a30055157
67 changed files with 8836 additions and 0 deletions
29
ELFLoader/_test.cpp
Normal file
29
ELFLoader/_test.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <stdio.h>
|
||||
|
||||
extern "C" const char hello_string[] = "Hello World!";
|
||||
|
||||
extern "C" int foo()
|
||||
{
|
||||
volatile int i = 3;
|
||||
i = 4;
|
||||
return i;
|
||||
}
|
||||
|
||||
extern "C" int bar()
|
||||
{
|
||||
return foo();
|
||||
}
|
||||
|
||||
extern "C" int baz()
|
||||
{
|
||||
return bar();
|
||||
}
|
||||
|
||||
extern "C" int EntryPoint()
|
||||
{
|
||||
puts(hello_string);
|
||||
printf("abc!\n");
|
||||
printf("def!\n");
|
||||
return 10 + baz();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue