{simple,shoddy,smart} minsize-oriented linker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
385 B

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
const char *f = "foo";
int main(int argc, char* argv[]) {
printf("hello world %s\n", f);
printf("argc=%d\n", argc);
printf("argv=%p\n", (void*)argv);
for (int i = 0; i < argc; ++i)
printf("argv[%d](%p)=%s\n", i, (void*)argv[i], argv[i]);
printf("sin(%d)=%f\n", argc, sinf(argc));