Questions tagged [binary-compatibility]

Binary compatibility is generally an ability of two hardware/software systems to run the same binary code without the need to recompile.

184 questions
6
votes
1 answer

ARMv8 backward compatibility with ARMv7 (Snapdragon 820 vs Cortex-A15)

I see that ARMv8 is merely an extension of ARMv7 architecture and all code compiled on ARMv7 should run on ARMv8. I am interested in the backward compatibility of ARMv8 to ARMv7. Will code that was compiled on ARMv8 run on ARMv7? I have a particular…
6
votes
3 answers

Writing Java code that compiles using one of two implementations of a class

I am writing some FFI code in Java that makes heavy use of sun.misc.Unsafe. In Java 9, this class will become inaccessible, and will become jdk.unsupported.Unsafe. I would like to write my code so that it works now, but continues to work in Java…
Demi
  • 3,535
  • 5
  • 29
  • 45
6
votes
3 answers

Binary compatibility when using pass-by-reference instead of pass-by-pointer

This question is intended as a follow up question to this one: What are the differences between a pointer variable and a reference variable in C++? Having read the answers and some further discussions I found on stackoverflow I know that the…
6
votes
3 answers

Java - binary compatibility of abstract class & subclasses

In Java, I define an abstract class with both concrete and abstract methods in it, and it has to be subclassed independently by third-party developers. Just to be sure: are there any changes I could make to the abstract class that are source…
thSoft
  • 21,755
  • 5
  • 88
  • 103
6
votes
2 answers

Determining binary compatibility under linux

What is the best way to determine a pre-compiled binary's dependencies (specifically in regards to glibc and libstdc++ symbols & versions) and then ensure that a target system has these installed? I have a limitation in that I cannot provide source…
John
  • 719
  • 6
  • 7
6
votes
1 answer

Determining why binary compatibility is broken

When I try to rebuild one of my VB6 DLLs, I get a warning: "The binary compatibility DLL or EXE contains a parameter type or return type whose definition can not be found" I have to release a few changes in selected DLLs (simple changes internal…
maverick
  • 63
  • 2
  • 6
5
votes
2 answers

does adding new member function into d pointer class break binary compatibility?

Will adding new member function into d pointer class definition break binary compatibility? For example, will the new definition below break binary compatibility compared to the original? (side question, is there a tool that will tell me if a new…
bob
  • 1,941
  • 6
  • 26
  • 36
5
votes
3 answers

Binary compatibility of STL containers

Let's say I write a DLL in C++ and would like to export a method which takes a std::vector parameter. Can I hope for any binary compatibility between different STL versions?
quant_dev
  • 6,181
  • 1
  • 34
  • 57
5
votes
1 answer

Runtime error (dll loading) with win32 applications on x64 system, while compiling 0K

I originally designed a win32 application on win7 32bits, with VC9.0. I recently upgraded to win7 64 bits, and tried to build+execute the previous application. Building runs fine (win32 application), but on runtime I get the error "[...] has exited…
ibanez
  • 158
  • 1
  • 1
  • 8
5
votes
4 answers

Creating a generic binary in linux for all x86 machines

Im trying to compile a binary of an open-source project so that our users do not have to compile it themselves. I've noticed that some binaries created on one 32-bit ubuntu machine "A" don't work on 32-bit machine "B", with errors regarding missing…
Martin Konecny
  • 57,827
  • 19
  • 139
  • 159
5
votes
1 answer

GCC target specificity and binary compatibility

Initial note: The question mentions AIX because it is the initial context but the question really pertains to gcc itself, most probably regardless of the platform. AIX is supposed to be backwards binary compatible: a C program compiled on AIX 5.1…
Lloeki
  • 6,573
  • 2
  • 33
  • 32
5
votes
1 answer

Binary compatibility of changing a class with static methods to interface in Java

I've faced the following weird case of an incompleteness of the Java/JVM specification. Suppose we have the classes (we will use Java 1.8 and HotSpot): public class Class { public static void foo() { System.out.println("hi"); } } public…
5
votes
1 answer

Can inline namespaces be used to keep backwards compatibility in a shared library?

The rationale for C++'s inline namespaces is both source and binary compatibility (see Herb Sutter's paper linked in N2535), but I have not been able to find good examples of keeping binary compatibility for existing libraries when introducing…
meastp
  • 682
  • 1
  • 7
  • 15
5
votes
2 answers

Why are public fields and properties interchangeably binary compatible?

In the day job, I work on a VB6 (I know, but don't mock the afflicted...) application that uses a number of libraries we have written (also in the ever illustrious VB6). One of these supporting libraries had a load of private members exposed via…
Martin Milan
  • 6,346
  • 2
  • 32
  • 44
5
votes
2 answers

Building Boost with LSB C++ Compiler

I want to build my program with LSB C++ Compiler from the Linux Standard Base http://www.linuxfoundation.org/collaborate/workgroups/lsb. Program depends on the Boost library, built with gcc 4.4 version. Compilation fails. Is it possible to build the…
Alex F
  • 42,307
  • 41
  • 144
  • 212