mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
dhrystone baremetal!!!
Factor out --optimization-level and --static to all builds More conventionally set argv[0] to be the basename of the image. Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
size_t i;
|
||||
for (i = 0; i < (size_t)argc; ++i)
|
||||
printf("%s\n", argv[i]);
|
||||
int i;
|
||||
printf("argc = %d\n", argc);
|
||||
for (i = 0; i < argc; ++i) {
|
||||
printf("argv[%d] = %s\n", i, argv[i]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user