GithubHelp home page GithubHelp logo

Comments (2)

Futaura avatar Futaura commented on May 27, 2024

@chainq Compiler magic :-)

Basically, for GCC/OS3, it is implicit that the register specified is the first of the pair if the type is 64-bit. I had to double-check this by disassembling as I couldn't remember, but I can see that GCC is correctly passing the high bits in d0 and the low bits in d1, for OPENSSL_init_ssl(). If you look at the LP2() macro itself, it puts the uinit64_t macro parameter into a variable of that type in register d0 (and d1 implicitly). I don't think GCC has a way to explicitly specify d0-d1, as you would do in VBCC for example.

from amissl.

chainq avatar chainq commented on May 27, 2024

@Futaura thanks for the answers. Things are more clear now I think. We're going to add support to specify register pairs for 64bit values in Amiga-style .library calls in Free Pascal, so the AmiSSL headers can be completed.

Actually, meanwhile I learned, that one needs this for some of the double precision math libraries as well. We didn't support this, because Free Pascal provides its own soft-float facilities instead for FPU-less systems, so supporting the old and fairly limited math libs wasn't a priority. So yeah, that could then work too. Closing the ticket, thanks.

from amissl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.