| |

VerySource

 Forgot password?
 Register
Search
View: 977|Reply: 6

Ask you some questions about the binary interface

[Copy link]

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-6 03:00:02
| Show all posts |Read mode
My personal understanding is that API is a compiler-oriented protocol and ABI is an operating system-oriented protocol.
The API seems very clear, but what issues should be considered in order to achieve a cross-platform ABI interface? Can you discuss them? What issues need to be resolved across platforms?
Reply

Use magic Report

0

Threads

10

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-11 13:54:01
| Show all posts
attention
Reply

Use magic Report

0

Threads

36

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-1-15 19:18:02
| Show all posts
The so-called cross-platform, to put it plainly, actually has an implementation of it in all operating systems, but the most essential thing inside all the implementations is to call the API functions of each system, just using classes or APIs The idea of ​​encapsulation is encapsulated into a cross-platform library or program.
For many cross-platform products, if you look at the code, such as C ++, you can compile and link related things on a platform through include or precompiled instructions.
Reply

Use magic Report

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-2-9 22:00:02
| Show all posts
The purpose of the include, or precompiled instruction, is to ensure that C ++ generates different object code on different platforms.
When I say cross-platform, I mean that an executable file under windows is FTP, and it can be run directly on the UNIX platform without recompilation. It is not a language-level cross platform.
Reply

Use magic Report

0

Threads

21

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 United States

Post time: 2020-3-6 18:00:01
| Show all posts
Are you talking about virtual machines?
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-7 08:30:01
| Show all posts
Under the same hardware architecture, only the interface of the operating system is different, as long as the system can provide corresponding support (such as WINE), it can be done.
Under different hardware architectures, only simulation or translation ...
Reply

Use magic Report

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-4-19 20:30:02
| Show all posts
Do you mean the interface of the operating system refers to the format of the executable file? If both Windows and UNIX can explain whether the same target file format is a compiled program, can it be cross-platform?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list