Hacker News new | past | comments | ask | show | jobs | submit login

Trying VmWare, VirtualBoxVM, none work. Finally pay and run UTM. Most not working but at least the minimum Debian work. All the commands under https://azeria-labs.com/arm-on-x86-qemu-user/ and also this works. You need some basic gcc commands and gdb commands, plus modification of the source so to have a driving main:

``` #include <cstdint>

struct Vec2 { int64_t x; int64_t y; };

int64_t normSquared(Vec2 v) { return v.x * v.x + v.y * v.y; }

int main() { Vec2 v; v.x = 42; v.y = 10;

int64_t x=0; x = normSquared(v); return 0; }

// gcc vector.cpp -o vector -Wa,-adhln=vectorO0.s -g -march=native //gcc -ggdb3 -o vectorgdb vector.cpp //gdb vectorgdb

```

Getting the interaction working and now can be back to reading his post!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: