Add Hello World
This commit is contained in:
parent
a946300e6c
commit
e6138735bd
8
tests/Compile.sh
Executable file
8
tests/Compile.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Compiling one C source with tcc and musl
|
||||
# tcc-musl tests
|
||||
# file: /tests/Compile.sh
|
||||
# Date: 2022.04.03
|
||||
|
||||
tcc $1 -nostdlib ../lib/Scrt1.o ../lib/libc.a -o $2 -Wall -Werror -g -O0 -pedantic -Wextra -I ../include -I ../obj/include -I ../arch/x86_64/
|
15
tests/Hello_World.c
Normal file
15
tests/Hello_World.c
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
musl-tcc tests
|
||||
src:/tests/Hello_World.c
|
||||
Date:2022.04.03
|
||||
By MIT License.
|
||||
Copyright(c) 2022 Ziyao.All rights reserved.
|
||||
*/
|
||||
|
||||
#include<unistd.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
write(0,"Hello World\n",12);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user