Giter Club home page Giter Club logo

Comments (3)

aswaterman avatar aswaterman commented on August 30, 2024

pk does not support dynamically linked programs; you must use -static. However, that will not work in this case, either, because pk does not support pthreads. You are better off running Linux than using pk for this purpose.

from riscv-glibc.

singhalshubh avatar singhalshubh commented on August 30, 2024

So what should I do for running .o file? Can you explain the command used to run on linux?

from riscv-glibc.

jim-wilson avatar jim-wilson commented on August 30, 2024

You can run the program on user mode qemu. user mode qemu supports dynamically linked programs and pthread. However, sometimes parallel programs fail on user mode qemu and I don't know why. If you have riscv-gnu-toolchain, then "make stamps/build-qemu" will build and install qemu. Or you can get it from qemu.org. Or if you have a recent enough linux distro, you can probably apt/yum/dnf/whatever install it.

Or, you can boot a linux image on system mode qemu, log in, and then compile and run the program natively. This is likely to work better than user mode qemu for parallel programs. I haven't see pthread failures when using system mode qemu.

Or if you have hardware that can boot linux, you can compile and run natively there.

from riscv-glibc.

Related Issues (17)

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.