abi Questions

2

In this document on p. 27 it says that text segment starts at 0x400000. Why was this particular address chosen? Is there any reason for that? The same address is chosen in GNU ld on Linux: $ ld -v...
Ansel asked 25/9, 2016 at 17:4

5

Solved

I am constantly getting this warning while building my android studio code using terminal command gradle clean assembleRelease: Unable to strip library 'lib.so' due to missing strip tool for ABI '...
Seldom asked 22/11, 2018 at 20:28

2

Solved

I'm trying to figure out what actually happens in C++ if you return a struct by value from a function, vs. return a pointer to the struct. How is a struct communicated when its sent by value if a f...
Sherwood asked 15/4, 2021 at 11:28

17

Solved

I never clearly understood what an ABI is. Please don't point me to a Wikipedia article. If I could understand it, I wouldn't be here posting such a lengthy post. This is my mindset about differen...
Federate asked 31/1, 2010 at 9:30

2

Solved

I came across a minimal HTTP server that is written without libc: https://github.com/Francesco149/nolibc-httpd I can see that basic string handling functions are defined, leading to the write sysca...
Wiburg asked 29/3, 2021 at 8:37

1

About a year ago, if you wanted to use Swift 4.2 for iOS development, you would have to install Xcode 10, which meant that you used iOS 12 SDK. As part your apps deployment, Swift 4.2 runtime would...
Yashmak asked 25/8, 2019 at 19:0

5

Solved

In the C99 standard they introduced long long. What is the purpose of this? In my (limited) C programming experience, I've only every seen a 4-byte int and an 8-byte long. For example, from Compile...
Facetious asked 9/1, 2021 at 22:20

3

At the Spark 2.1 docs it's mentioned that Spark runs on Java 7+, Python 2.6+/3.4+ and R 3.1+. For the Scala API, Spark 2.1.0 uses Scala 2.11. You will need to use a compatible Scala version (2....
Couplet asked 19/3, 2017 at 13:50

4

Solved

The x86-64 instruction set adds more registers and other improvements to help streamline executable code. However, in many applications the increased pointer size is a burden. The extra, unused byt...
Borroff asked 10/2, 2012 at 19:4

5

Solved

For a 32-bit windows application is it valid to use stack memory below ESP for temporary swap space without explicitly decrementing ESP? Consider a function that returns a floating point value in ...
Census asked 10/9, 2018 at 13:0

1

Solved

From this question, What registers are preserved through a linux x86-64 function call, it says that the following registers are saved across function calls: r12, r13, r14, r15, rbx, rsp, rbp So, I...
Chadbourne asked 12/9, 2020 at 21:19

3

Solved

The x86-64 System V ABI (used on everything except Windows) used to live at http://x86-64.org/documentation/abi.pdf, but that site has now fallen off the internet. Is there a new authoritative hom...
Alexina asked 8/8, 2013 at 18:50

4

It may be a duplicated question, but i'm unable to find it. I wonder how we can get what's the ABI of a phone, using code. I know that there's different Interface that may dictated in gradle file. ...
Tautologize asked 9/2, 2016 at 12:23

1

I am trying to find compiler features which will work if shared library compiled using standard library that differ from standard library of executable, that load shared lib. I understand that ABI ...
Undesirable asked 2/8, 2020 at 17:42

1

Solved

Because of a lack of PUSH and POP instructions in ARM64, I'm having a problem with understanding how SP work in ARM64. If I were to PUSH/POP, does the SP decrement/increment by 4, 8 or 16 bytes? I'...
Alluring asked 20/7, 2020 at 20:20

1

Solved

Very simple assembly introduction code. Seems to compile ok through gcc -o prog1 prog1.s, then ./prog1 just skips a line and shows nothing, like waiting an input the code doesn't ask. What's wrong?...
Drier asked 5/5, 2020 at 20:26

1

Solved

Related question: Standard-layout and tail padding Snippet: #include <iostream> #include <type_traits> struct A0 { int a; char c; }; struct B0 : A0 { char d; }; struct A1 { int ...
Marjorymarjy asked 1/5, 2020 at 18:7

1

Solved

Seeing this crash on Google Play Console of our unity-made game after our recent update, happening on Android 5.0 for more than 99% of the occasions. I guess this has something to do with WebView,...
Murtagh asked 5/3, 2019 at 13:41

2

Do memory layout related specifications in ABI standards generally apply only across ABI boundaries or also e.g. within a translation unit, or if that is not the case, do compilers generally make s...
Preconscious asked 31/3, 2020 at 5:40

3

Solved

The more I look at this PDF (Application Binary Interface for the ARM Architecture: The Base Standard) the less I understand what it means. Also I'd like some comments on Procedure Call Standard fo...
Sailor asked 9/11, 2011 at 3:59

1

Note: This question is about x86_64 architecture and Linux ABI. When the program is launched, some space is allocated for stack. Later on, during program execution the stack area can get resized (...
Goldenseal asked 3/3, 2020 at 11:49

3

Solved

From wiki Executable and Linkable Format: The segments contain information that is necessary for runtime execution of the file, while sections contain important data for linking and relocation. An...
Elfredaelfrida asked 16/1, 2013 at 14:58

1

I'm facing the issue with distributing compiled swift framework. My framework heavily relies on the libxml2 dynamic library. In order to avoid issues with Swift module compatibility, I've set build...
Intricacy asked 17/12, 2019 at 13:33

1

Solved

Consider the following example: struct vector { int size() const; bool empty() const; }; bool vector::empty() const { return size() == 0; } The generated assembly code for vector::empty (by ...

4

Solved

I'm watching Chandler Carruth's talk in CppCon 2019: There are no Zero-Cost Abstractions in it, he gives the example of how he was surprised by just how much overhead you incur by using an std::u...
Darladarlan asked 11/10, 2019 at 10:19

© 2022 - 2024 — McMap. All rights reserved.