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
-1
votes
1 answer

Getting the function name (__FUNCTION__) for my unit test library's assert function

I am writing a unit test library and I need to log the name of the test function during the assertion, like as follows: struct my_test_case : public unit_test::test { void some_test() { assert_test(false, "test failed."); …
Benji Mizrahi
  • 2,154
  • 2
  • 23
  • 38
-1
votes
3 answers

C++ ABI standards compliance w/ arbitrary name mangling

Okay, the question title was kind of a hook. I already get that there is no C++ standard ABI. That said, I've not deceived you eager upvote-gatherers. I'm wondering if there is ANY limitation to the C++ ABI. It seems common, for example, for at…
user
  • 4,920
  • 3
  • 25
  • 38
-2
votes
1 answer

Is it safe to pass objects, such as STL objects, to and from a static library?

I know that passing objects to/from DLLs can be unsafe, but I am unsure if the same is true for static libraries. Is it safe to pass objects, such as STL objects, to and from a static library?
cowlinator
  • 7,195
  • 6
  • 41
  • 61
-2
votes
1 answer

How to detect ABI at compile time?

Is there a way to detect ABI in C/C++ at compile time? I know there are macros for OS and CPU architecture. Are there similar macros (or some other way) for ABI?
freakish
  • 54,167
  • 9
  • 132
  • 169
-2
votes
1 answer

warning if allocating a structure on the stack

I'm changing an existing structure which is normally used on the stack, to one that cannot be used on the stack. During this transition phase, is there a way to notify users with a warning or a pragma not to allocate structure on the stack? for…
koda
  • 741
  • 1
  • 7
  • 18
1 2 3
59
60