Giter Club home page Giter Club logo

Comments (3)

ptitSeb avatar ptitSeb commented on July 24, 2024

For now, native x86_64 build is not supported. But x86 is, so you need 32bits libs. Look in COMPILE.md for the compile switch to activate to get a working build.

from box86.

madscientist159 avatar madscientist159 commented on July 24, 2024

What would be required to get 64-bit builds working? I have a system that is 64-bit non-x86, no 32-bit compatibility available. Goal is running old x86 (32-bit) games.

from box86.

ptitSeb avatar ptitSeb commented on July 24, 2024

It's a lot of work.

For an 64bits build, taking asside the dynarec that would need a new backend (i.e. a rewrite), there are a lot of case to check in the code to differenciante "emulated" void* (32bits) and "native" void* (64bits).
The main issue would be memory allocation in the wrappers. The idea of box86 is to directly map x86 function call with native function. So, for a function like malloc(...), some mecanism needs to be pt in place to be sure the returned pointer is 32bits compatible. Either by using some custom function, or by creating a map (that's the Hangout approach I think). The custom function is nice because you directly have a compatible pointer, but you need to have a custom funciton for every function that allocate memory (and there are a lot, and and it's not limited to libc). The second approach means you need to use the map for every function that use a pointer (so you get a speed hit because of the map, and you always have the risk of missing some pointer in a structure...). Maybe something intermediary could be done (some mmap or similar mecanism to mirror the memory?), but I haven't done much research on that.

I think a box86_64, targetting x86_64 would be a bit simpler, but because of the complexity of the x86_64 architecture, still a large amount of work.

from box86.

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.