473,414 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

MBR,C++ and system booting

Hi there everyone .I have a problem:
I want to run my C/C++ program on a PC with no operating system.I mean
a boot programm written in C/C++.How should I do that ?

Mar 4 '06 #1
5 3372
TB
shahoo skrev:
Hi there everyone .I have a problem:
I want to run my C/C++ program on a PC with no operating system.I mean
a boot programm written in C/C++.How should I do that ?


Read the documentation for the system. Intel has complete free huge pdf
volumes on their site which covers all steps during booting and beyond.

--
TB @ SWEDEN
Mar 4 '06 #2
On 4 Mar 2006 03:30:31 -0800, "shahoo" <sh************@gmail.com>
wrote:
Hi there everyone .I have a problem:
I want to run my C/C++ program on a PC with no operating system.I mean
a boot programm written in C/C++.How should I do that ?


There is no such language: C/C++.
There is C, and there is C++.

The open source Linux operating system would be a good place to look
to see how this can be done for a PC (i.e. for PC's with an Intel x86
CPU). Most of Linux is written in C (not C++). However, there is also
a lot of code which is necessarily written in assembler because at
boot time, you have no way of executing any C runtime functions or
otherwise interfacing with the hardware.

http://www.linux.org

--
Bob Hairgrove
No**********@Home.com
Mar 4 '06 #3
On 4 Mar 2006 03:30:31 -0800, "shahoo" <sh************@gmail.com>
wrote:
boot programm


I think GRUB was impleented in C, whereas LILO was in assembler, IIRC.

--
Bob Hairgrove
No**********@Home.com
Mar 4 '06 #4
Hi
First, thanks for your help.
And by C/C++ I mean both languages C and C++ because of their
similarity.

Mar 5 '06 #5
shahoo wrote:
Hi
First, thanks for your help.
And by C/C++ I mean both languages C and C++ because of their
similarity.


That's usually a bad thing, due to their dissimilarities.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 5 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: aa | last post by:
Is it possible to enforce changed in php.ini without re-booting (w2k)?
19
by: Lad | last post by:
I used Py2exe to compile my script( I use XP). The compiled script works OK on my XP where Python is installed. But when I install the compiled exe to another computer, os.system causes the...
1
by: Dandyla | last post by:
I'm trying to restore my computer to factory settings. I had done it once before, but cannot remember how to. I do not want to do a regular restore point; I need to get everything erased...
6
by: purpledawg | last post by:
i have a celeron d 330 processor, and i was troubleshooting another pc. I took out the ram and put it in the other pc, then put the ram back into the first pc. Now it wont boot, its like the cpu isnt...
2
by: peted | last post by:
I have an IBM netfinity 3000 and recently it does not boot and the message is system lock. How could I unlock this?
0
by: =?Utf-8?B?VGFkaWxsYWM=?= | last post by:
I ran Kaspversky anti-virus and it found multiple "viruses" on certain files. Some couldn't be disinfected and so therefore were deleted. Among those was my windows logon file. The computer did a...
1
by: mamoon | last post by:
I am using RHEL4. Last time while booting it shows "repair filesystem". i have used in this way sda1,sda2 and others are ok. BUT when i run this command on sda7 (which is mounted on root) it...
5
by: sakthikumarb | last post by:
Hi, How can i get event for remote host is booting up,there is any wmi mechanism for the same.if not,what is the other procedure to get a event for remote host bootup/startup time . Thanks...
4
by: Rsmastermind | last post by:
Hi friends one of my friend is using an old PC Its configuration is 128Mb RAM.30 Gb HDD.CD writer OS WIndows 2000. Now he wants to install windows Xp but the problem is that he is unable to boot...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.