Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6644927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:13:28+00:00 2026-05-26T00:13:28+00:00

I am developing a kernel in C++. But I do not want to write

  • 0

I am developing a kernel in C++. But I do not want to write a stdlib; for that purpose I have downloaded STLport http://www.stlport.org/, but I don’t know how to install and use it.

I am using Linux for building my kernel.

How can I use c++ standard libs in my kernel?

And I do not want to port all libs from STLport. How can I exclude a selection of libs? Like std::string, std::vector etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:13:29+00:00Added an answer on May 26, 2026 at 12:13 am

    In order for STL to work you have to port several things like static initialization (for i.e. std::cin and std::cout) and stack unwinding…

    you’d have to port i.e.: libsupc++ and have that in your kernel.
    Basically all this stuff shouldn’t be in the Kernel in the first place. DON’T use Vectors use static arrays because vectors might reallocate your data!

    also all that stuff will bloat your kernel for nothing!

    you can have a look what L4 allows itself to be used in kernel. they don’t do memory allocation and they don’t do exceptions (unpredictable) and they especially don’t do STL.

    The latter links shall give you an idea what you need to port to get c++ operating system support. Libsupc++ is part of gcc. it’s purpose is to encapsulate all the parts where runtime code is needed.

    Useful information about libsupc++

    Useful information about c++ operating system support

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When developing a module (device driver, middleware, etc...) that will run in the kernel
I'm working on keyboard input for a very basic kernel that I'm developing and
I have 6 months experience with Android, developing simple UI-based applications. Now I want
Developing for iPhone, I have a collection of points that I need to make
I have a C program that I'm developing using Ubuntu 11.10 (Linux version 3.0.0-12-generic-pae
How can I instruct the system to reload all kernel modules that have changed?
Developing mobile apps is a challenging job. Customers want to be present not only
I am developing application that uses shared preferences and content provider. But everytime I
I have a kernel already designed and am now developing a bootloader. I would
I'm developing a Linux kernel module outside of the Linux source tree (in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.