Skip to main content
2 votes
0 answers
110 views

I have a function that I marked #inline(never). I ran cargo build --release and objdump -d [binary name]. What I see is that my 3d parameter (hi) is in register x4 for some reason. I'd expect it to be ...
Stanislav Bashkyrtsev's user avatar
5 votes
1 answer
149 views

I have a class hierarchy that already exists that looks like this: class parent { public: parent(); ~parent(); virtual void foo(){} }; class child : public parent { public: child(); ...
rm5248's user avatar
  • 2,697
27 votes
2 answers
2k views

Consider this C (not C++!) code: int g(); int f() { return g(); } Clang (with any optimization level above zero) compiles this to: f: xor eax, eax jmp g@PLT I am trying ...
Brennan Vincent's user avatar
Advice
0 votes
3 replies
123 views

My question is how this structure passed and returned from function? struct S { int a[5]; }; I read ABI. As far as I understand if the size of structure less then 64 bytes it will separate to ...
chav1s's user avatar
  • 41
1 vote
1 answer
69 views

There are two ways to create VxWorks applications: Real-time processes (RTP), which are akin to a process in the Unix world. Downloadable kernel modules (DKM), which run in kernel mode, akin to a ...
dividebyzero's user avatar
  • 2,298
10 votes
2 answers
124 views

I was going through the System V AMD64 ABI and couldn’t find a clear explanation for why the AL field (which tracks how many floating-point registers are used) is necessary. From my understanding, ...
OODAX's user avatar
  • 159
2 votes
1 answer
254 views

This comes from a post about invoking a trivial buffer overflow (to jump to a function present in the source but not called explicitly in any place of the program (2333909/how-can-i-invoke-buffer-...
nostromo's user avatar
  • 447
0 votes
0 answers
31 views

Android App Crashes on Launch for Specific Devices (Samsung Galaxy A12) - No Crashlytics Logs Problem Description My Android app works perfectly for most users, but some users are experiencing crashes ...
Ahmed Gabr's user avatar
0 votes
1 answer
94 views

I’m trying to understand ABI decoding of multicall RPC calls so I can create stubbed tests using WireMock for my Rust EVM application. The multicall function signature is: function aggregate(Call[] ...
Joel Earps's user avatar
1 vote
0 answers
57 views

Given the example of a simple program for GNU assembler on i386 architecture in Linux: .section .data msg: .ascii "Hi, People!\n" len = . - msg .section .text .global _start _start: # ...
Rodion Gorkovenko's user avatar
1 vote
1 answer
108 views

In the libc++ implementation of std::expected, there is this helper variable template: // This function returns whether the type `_Second` can be stuffed into the tail padding // of the `_First` type ...
TheAliceBaskerville's user avatar
1 vote
2 answers
132 views

I am developing a simple logic-gate simulation. For each logic gate type the following class is implemented: class Gate { public: explicit Gate(); virtual ~Gate() = default; virtual void ...
Placeblock's user avatar
15 votes
1 answer
918 views

I recently found out about [[no_unique_address]] attribute in C++. According to cppreference.com: Applies to the name being declared in the declaration of a non-static data member that is not a bit-...
TheAliceBaskerville's user avatar
0 votes
1 answer
87 views

I stumbled upon the static chain pointer while reading about the System V ABI and I found this explanation on its usage in nested functions. I am curious, why do we need the static chain pointer at ...
GuillemVS's user avatar
  • 368
3 votes
2 answers
605 views

I was trying to use electron-builder to build my app, and I get an error. It worked a month ago and I didn't change anything in the package.json file, but now it doesn't work. The app does work when I ...
Rick Sanchez's user avatar

15 30 50 per page
1
2 3 4 5
64