Thread: how to design a Bootable file in C ???

  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72

    how to design a Bootable file in C ???

    Someone please suggest me that in Which Direction i should Start Study if i want to write a Code of a bootable file for my PC... no matter what the Task is coded whether it is to Print my name or to print the Sum of two nos or something else...

    I just want to write the Code in C which can be Boot by BIOS after removing the HARD DISK from my PC !!

    i.m using windows XP. Compiler: Borland C

    ^-^

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    1) You aren't going to write 32 or 64 bit bootcode in a 16 bit compiler. You need to update... no joke... and do it now... smorgasbordet - Pelles C

    2) I've been dabbling in programming ever since the Exidy Sorcerer came out and the company I worked for picked up service contracts for the Intertec Superbrain... AND, even I would not tackle that project.

    Self booting code requires an indepth awareness of the underlying hardware... even a task as simple as printing your name on the screen requires you to initialize, configure and talk to keyboard, video, memory, processor, etc. ... All the things usually done for you by the operating system. Any self-booting program HAS to contain some sort of imbedded operating system...

    If you're wondering why you don't see it more often, it's because it's a task of monumental complexity. If it were as easy as you seem to think it is, we'd have far better operating systems to work with...

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM