diff --git a/HelloWorld.cpp b/HelloWorld.cpp index 785c02c..3c20b46 100644 --- a/HelloWorld.cpp +++ b/HelloWorld.cpp @@ -1,7 +1,20 @@ #include +#include + +using namespace std; int main() { - std::cout << "Hello world!" << std::endl; + int n = 100; + vector arr(n); + + for (int i = 0; i < n; ++i) { + arr[i] = i * i; + } + + for (int i = 0; i < arr.size(); ++i) { + cout << arr[i] << "\n"; + } + return 0; } \ No newline at end of file diff --git a/HelloWorld.dSYM/Contents/Info.plist b/HelloWorld.dSYM/Contents/Info.plist new file mode 100644 index 0000000..eca1c18 --- /dev/null +++ b/HelloWorld.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HelloWorld + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/HelloWorld.dSYM/Contents/Resources/DWARF/HelloWorld b/HelloWorld.dSYM/Contents/Resources/DWARF/HelloWorld new file mode 100644 index 0000000..9a5ba7a Binary files /dev/null and b/HelloWorld.dSYM/Contents/Resources/DWARF/HelloWorld differ diff --git a/HelloWorld.dSYM/Contents/Resources/Relocations/aarch64/HelloWorld.yml b/HelloWorld.dSYM/Contents/Resources/Relocations/aarch64/HelloWorld.yml new file mode 100644 index 0000000..f90074f --- /dev/null +++ b/HelloWorld.dSYM/Contents/Resources/Relocations/aarch64/HelloWorld.yml @@ -0,0 +1,7 @@ +--- +triple: 'arm64-apple-darwin' +binary-path: '/Users/karim/Desktop/Hello/helloworld/HelloWorld' +relocations: + - { offsetInCU: 0x510F, offset: 0x510F, size: 0x8, addend: 0x0, symName: __ZStL8__ioinit, symObjAddr: 0x15C88, symBinAddr: 0x100008000, symSize: 0x0 } + - { offsetInCU: 0x5271, offset: 0x5271, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003E30, symSize: 0x78 } +...