Skip to content

Commit d35317b

Browse files
committed
Fix for P1021 stage 1
1 parent 9587620 commit d35317b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test_argc.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#include <stdio.h>
2+
3+
int main(int argc, char *argv[])
4+
{
5+
printf("Number of arguments: %d\n", argc);
6+
7+
// Print all arguments for reference
8+
for (int i = 0; i < argc; i++) {
9+
printf("Argument %d: %s\n", i, argv[i]);
10+
}
11+
12+
return 0;
13+
}
14+
15+
/*
16+
17+
/opt/petalinux/2024.2/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-gcc \
18+
-mcpu=cortex-a72.cortex-a53+crc+crypto \
19+
--sysroot=/opt/petalinux/2024.2/sysroots/cortexa72-cortexa53-crypto-xilinx-linux \
20+
-o test_argc -Wl,-static \
21+
test_argc.c && scp test_argc [email protected]:/tmp/
22+
23+
*/

0 commit comments

Comments
 (0)