Can we execute any simple program without installing any Operating system?

I think no,can u suggest?

Editorial / Best Answer

Answered by: kunal kaushal

  • Jul 24th, 2006


No! we can not run any simple program with out using any interface such as operatin systen or System software. but in some cases like Machine level languge or firmware run without any software because it directlly communicate with hardware and makes the hardware active so other program can run using his platform.

Showing Answers 1 - 43 of 43 Answers

Alex T

  • May 7th, 2006
 

Of course, you can!

A program needs to be written in machine codes, of course, and you will need means to get it into the memory. In fact, the operating system itself is a program, and it loads without any PREVIOUS operationg system.

  Was this answer useful?  Yes

smita

  • May 8th, 2006
 

true , we cannot execute a program without an interface to H/W .

  Was this answer useful?  Yes

geek

  • May 9th, 2006
 

bios

  Was this answer useful?  Yes

Krishan

  • Jun 1st, 2006
 

Depends on what type of program you are talking about.

you can run a simple "hello world" if it's written in machine language, but it won't be simple program. you have deal with resource and memory etc. etc.

but if you are talking about 2 line C code ... then answer is NO, you can't.

  Was this answer useful?  Yes

Subhra

  • Jun 27th, 2006
 

I think it is possible if you have binary of that code and you put that binary at the time of Booting the system. If it is simple .c or .cpp file then it is not possible.

  Was this answer useful?  Yes

kavee

  • Jul 14th, 2006
 

Yes you are right. Using machine language we can run program without OS.

  Was this answer useful?  Yes

deeproot

  • Jul 14th, 2006
 

Why not? We can execute programes without operation system 'cause many machines like automatic washing machines, microwave and many other device do not have operating system but they execute program 'cause programs are implemented in there chip.

  Was this answer useful?  Yes

Varun Bansal

  • Jul 22nd, 2006
 

Well,I think we can execuate any proramme which is written in machine luanguage,because after formatting it only works in DOS which takes the machine luanguage

  Was this answer useful?  Yes

kunal kaushal

  • Jul 24th, 2006
 

No! we can not run any simple program with out using any interface such as operatin systen or System software. but in some cases like Machine level languge or firmware run without any software because it directlly communicate with hardware and makes the hardware active so other program can run using his platform.

  Was this answer useful?  Yes

RAJEEV CHOPRA

  • Sep 8th, 2006
 

We can run a machine language simple program without operation system because it requrements only hardware not any software enviornment.
Thanks

  Was this answer useful?  Yes

rich

  • Sep 25th, 2006
 

no.

  Was this answer useful?  Yes

Ankur Sadhoo

  • Dec 13th, 2006
 

The answer is YES and NO.

If the program is in the form of a .COM file and uses strictly BIOS calls, No calls to OS kernel then we can run it directly.

YES:   I have run LOGO.COM (a language for graphical drawing), the primitive version from a non-bootable floppy. When BIOS prompts for location of COMMAND.COM specify the location of LOGO.COM and it will load the program into memory.

NO: Any program EXE(cutable) that is compiled for a target environment(DOS, Win16, Win32, etc) will not run without the support of that environment. Reason for the same is the dependence on facilities provided by the environment(eg Win provides driver interface to devices like sound, video cards) and API calls to kernel.

Comments are welcome!

Warm Regards
Ankur Sadhoo
ankursadhoo@gmail.com

  Was this answer useful?  Yes

anamika71

  • Dec 25th, 2006
 

If , the question is "installing any OS" , then a reply is you could use LiveCD and execute programs out of it, without actually installing the OS. Many Linux variants, OpenSolaris offer LiveCDs

  Was this answer useful?  Yes

abhishek

  • Feb 22nd, 2007
 

yes but in machine code i.e in binary code only

  Was this answer useful?  Yes

dpjord

  • May 10th, 2007
 

Yes you can.  Most equipment have specialized software written for them.  This software will initialize the component needed and give the instruction for the system to work. Your P.C. is just a machine that works with the same principles.

  Was this answer useful?  Yes

Jay Singh

  • Jun 11th, 2007
 

System Have

Memory

Power

Processor

in basic form ...so when u switch on the X86 architecture PC.

u can access the memory and get it visible in LCD screen(should be hardwared).

then assembly coding can be used in memory

  Was this answer useful?  Yes

Visitor

  • Aug 21st, 2007
 

Of course you can. The program does not even have to be simple. It can be as complex as a whole operating system. You can write it in C and compile it on another machine. If the program can carry out the functionality of an operating system then you can do a lot of things.

The BIOS knows how to load software and manages the basic IO to peripherals so you really only need to place the your executable in the boot sector where the bios can find it and load it.

  Was this answer useful?  Yes

prajwal G

  • Sep 6th, 2007
 

Of course lets understand the question first he asked 'Can we execute any simple program' Answer is Yes because program is a set of instructions that should be executed accordingly, Operating system itself is a program so for installing a operating system we need machine level code that is also a program which interact with hardware. To run a simple program it need only memory micro processor and micro controller works on its own chip level program.

  Was this answer useful?  Yes

jana05

  • Jan 11th, 2008
 

I think the person just wanted to run a simple program on a std PC, possibly due to curiosity.  Well, if the assumption is ok, then the following answer might be of help. A std PC is made of hardware with a little bit of software called BIOS in a firmware burnt chip[hardwired]. On top  of this an OS is installed and u use the facilities in the OS to run your simple program like just printing a "Hello World". The OS sits there on the disk to help you use the various devices in the system like the CPU, monitor, keyboard, memory and so on... when a C statement like printf tries to print "Hello world", it invokes the facilities in the OS to put it onto the screen. In the absence of the OS, all these jobs will have to be done by the simple program, which becomes tedious and very cumbersome.

Similarly, the embedded devices also posses an software which helps the device to operate like the mobile phone.

  Was this answer useful?  Yes

kaaka

  • Feb 8th, 2008
 

Havent u guys heard of Assembly Language??? A microprocessor kit?? They dont have OS... But still we execute programs......

  Was this answer useful?  Yes

Siba Ranjan Biswal

  • Feb 11th, 2014
 

Yes a program can be executed with out operating system..for example the boot executable program runs in systems while no operating system is available prior to it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions