Upfront disclosure: I think the entire thing is nonsense and "works" by chance, but I found this code and it seems to "work" for low-enough values of ...
Upfront disclosure: I think the entire thing is nonsense and "works" by chance, but I found this code and it seems to "work" for low-enough values of ...
I need to hook into C++'s exception throwing mechanism like this: If you're wondering "Why would you do that?" I have this simple example of throw ...
For example, this code: void ppp(void); void kkk() { __asm__ volatile("std":::"cc"); ppp(); } Before calling ppp(), it need to execute cld ...
main.cpp test3.cpp if main.cpp build with gcc-11 while test3.cpp with gcc-4.8, the program would crash. if main.cpp build with test3.so in ...
I have noticed that GCC generates very different (and less efficient) code when it is given a union of an SIMD vector type and any other same-size and ...
I have an interface in solidity which looks like so, I would like my call to revert if the calldata passed isn't of a specific type I've created a ...
Everything works effectively until I add the const amountOut to the file. Code with Error & location of function that breaks code ...
I search a way to find and interact with the view functions of a smart contract on Elrond blockchain. I have many questions: How to reverse a was ...
I see as a beginner that compilation units need to be the same ABI's in order to be able to be linked. I also read about how c++ commitee is hesitant ...
I have a contract deployed to mainnet. I have a javascript file which exports the functions so they could be called by other files. I have a button th ...
ARM ABI says that the stack should be 8-byte aligned, but I see cases where the stack is aligned only to 4-byte boundary. For example, I have the fol ...
For example, calling int func( int a, int * b...) will put a and b into registers r0, r1 and so on, call the function and return the result in r0 (rem ...
While debugging with gdb, printing the vtable yields something like the following: What does the [abi:cxx11] part mean? I understand that this shou ...
I am trying to get the balances of a custom token on BSC (can be any BSC token – BUSD, WEJS, APX etc… you name it). To that end I have the following q ...
The ABI for my contract does not show all the functions in the contract. Why is that? This is my contract:- Functions like getAvailableNft(), getMy ...
I have a scenario where I need to call a function from LLDB (but it could be any C++ API) on Linux x64, from an app written in a different language. F ...
I'm doing some compiler-writing projects and I want to make sure I'm understanding ABI and calling-conventions correctly. Say I'm writing a compiler ...
Consider the following class that is defined in dynamic library. Then a new version of the class is defined with an extra field b. Is the new v ...
I'm coming from Ethereum smart contract development background using solidity to Algorand smart contract development using pyteal. I couldn't found an ...
I am writing a simple multitasking OS for the ARM Cortex M3. My threads always run using the Process Stack Pointer. I have an application that I inher ...