Questions tagged [abi]

The (Application Binary Interface) specifies the low level interface between the programs, libraries and the operating system. E.g. which registers are used to pass function parameters.

The (Application Binary Interface) specifies the low level interface between the programs, libraries and the operating system. E.g. which registers are used to pass function parameters.

890 questions
0
votes
1 answer

Where is the RHEL version 5 Developer Guide?

I found the "Developer Guide" for RHEL version 6 located at: https://access.redhat.com/knowledge/docs/Red_Hat_Enterprise_Linux/ --> click on the Developer Guide link. However when you scroll down further to the RHEL version 5 documentation I can't…
Trevor Boyd Smith
  • 18,164
  • 32
  • 127
  • 177
0
votes
1 answer

shared linking against libB.so, libB.so.3, or libB.so.3.0?

Suppose I would like to create a library A that links against another (system) library B of which the following files are installed: $ ll /usr/lib/libB* libB.so -> libB.so.3 libB.so.3 -> libB.so.3.0 libB.so.3.0 When creating my own libA.so*, I…
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
-1
votes
1 answer

C API interface for C++ code: Passing opaque pointers directly without wrapping

I am currently designing a C API interface for some C++ codes ( This library is delivered prebuild ). Up until now whenever I need to pass an object I use the following pattern public.h struct Object; error_code take_object( Object * object…
Sam Coutteau
  • 111
  • 5
-1
votes
1 answer

ethers.js data out-of-bounds while parsing human-readable contract ABI

I'm trying to define contract ABI (part of standard ERC-721) as follows: export const ERC721_STANDARD_ABI = [ "function balanceOf(address owner) view returns (uint)", "function transfer(address to, uint amount)", "event Transfer(address…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
-1
votes
1 answer

Solidity how to validate calldata decodes to a paticular struct

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 // Resolver interface interface IResolver { // Pass payment info as calldata only the manager should have the…
Ritzy Dev
  • 387
  • 3
  • 10
-1
votes
1 answer

var error = new Error(message); Why am I getting this message in the terminal?

Everything works effectively until I add the const amountOut to the file. Code with Error & location of function that breaks code
W3C0d3
  • 3
  • 3
-1
votes
1 answer

powerpc-elf abi instead of elfv2 on 64 bit powerpc systems, is it possible?

I have been trying to cross compile gcc for 64-bit powerpc architecture. However, GCC configuration lacks "powerpc64-elf" target. It has "powerpc64-linux", powerpc-rtems (which can produces 32/64 bit code). Digging further, I have read the following…
memoks
  • 11
  • 3
-1
votes
1 answer

Why MSVC compiler/optimizer won't remove a duplicated function call inside a shared library, and instead duplicate the whole function body?

I would like to know if it's a design of the language (or maybe the shared library mechanism) or is it just a weakness of the compiler, but I'm wondering why in the first case the code gets optimized (the useless call is removed) but not in the…
endyx
  • 21
  • 4
-1
votes
1 answer

ARM64 calling conventions: caller or callee saved when there are fewer than 8 args?

This is regarding the Unix/Linux ABI for ARM 64-bit. If one functions is using registers x0-x7 because it has received 8 parameters, and it then calls another function that also plans to use let's say x6-x7, is it expected that the caller will save…
Whuddawuh
  • 85
  • 1
  • 7
-1
votes
1 answer

Different types of object files

The e_type in the ELF document lists the following available object file types: Name Value Meaning ET_NONE 0 No file type ET_REL 1 Relocatable file ET_EXEC 2 Executable file ET_DYN 3 Shared…
David542
  • 104,438
  • 178
  • 489
  • 842
-1
votes
1 answer

Can Swift protocol support generic without involve ABI changing?

Why Swift use associated type in protocol, not generic? Is associated type is better than generic? If we want Swift to support generic in protocol, will it bring in ABI change? why? I just didn't found any resources on this topic.
Ypy
  • 56
  • 5
-1
votes
2 answers

Heap Organaziation with CMD - Paramters

I have the following question: Assume I have a 64-bit Windows machine. I call an application with the command line parameter "xyz". How will my heap looks like. I understand that the string will be stored in the heap and the address will be stored…
-1
votes
1 answer

Access external native functions using JNI

I have a small doubt regarding native library access using NDK. Is it possible to access native functions in the library using JNI? I have a library built completely on C++, is it possible to load that external library and write JNI to communicate…
0x52616A657368
  • 388
  • 3
  • 24
-1
votes
1 answer

Why CPSR register is not saved during function call in ARM ABI?

Suppose I change the CPSR register in the caller fucntion by instruction like SUBS R0, R0, #1, where R0 is exactly equals to 1, then call a function using beq cpsr_test. In the callee function, the Z flag of CPSR is still set, right? Then callee…
Elinx
  • 1,196
  • 12
  • 20
-1
votes
1 answer

Is there a coding convention to MIPS?

I would like to get linked with a C compiler. What is the convention to pass values to function using MIPS? Is there a coding convention or RFC-Like document?
ALUFTW
  • 1,914
  • 13
  • 24
1 2 3
59
60