| | |
execute a c program
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Ah, well, then you've got yourself in a ball of mud.
One of the primary functions of the OS is to load and execute a program. How this happens is typically and entirely dependent on the OS.
For example, Win32 cannot execute a Mac program. As far as old DOS and Win16 programs, Win32 was specifically engineered to support legacy applications, but the next generation will scrub the old DOS subsystem anyway...
If you intend to execute PE32 (Win32) programs, then you'll have to do some serious reading over at MSDN and around the net.
Otherwise, you'll have to roll your own exe format, or borrow one from another OS, and write your own loader.
Good luck.
One of the primary functions of the OS is to load and execute a program. How this happens is typically and entirely dependent on the OS.
For example, Win32 cannot execute a Mac program. As far as old DOS and Win16 programs, Win32 was specifically engineered to support legacy applications, but the next generation will scrub the old DOS subsystem anyway...
If you intend to execute PE32 (Win32) programs, then you'll have to do some serious reading over at MSDN and around the net.
Otherwise, you'll have to roll your own exe format, or borrow one from another OS, and write your own loader.
Good luck.
Maybe consider writing a small boot loader and use BIOS calls instead. Most of the functionality you need is provided by any of the PC BIOS's. That way you are completely independent of any operating system including DOS. As your project develops, then inevitably you can get rid of any BIOS dependence too like Linux
![]() |
Similar Threads
- how to execute an *.exe file in a c-program? (C)
- VB6 - Generate a new/blank sheet each time I execute my program. (Visual Basic 4 / 5 / 6)
- all program extensions are now replaced with one .lnk (Windows NT / 2000 / XP)
- help : external program wont execute. (Visual Basic 4 / 5 / 6)
- Linux Shell Script needs help writing program (Shell Scripting)
- Executable program design question.... (Java)
- Cant execute a c++ program (C++)
- Problem trying to run old fortran based program in win xp (Windows NT / 2000 / XP)
Other Threads in the Assembly Forum
- Previous Thread: I know Im dim
- Next Thread: question
| Thread Tools | Search this Thread |






