We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9587620 commit d35317bCopy full SHA for d35317b
test_argc.c
@@ -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