| | |
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
Views: 1624 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Assembly
3d 68hc11 6811 80386 :( adress array asm assembler assembly boot bootloader buffer compression cursor debug directory division docs dos draw emulator endtask error exceptions file int10h integer intel interrupt interrupts language loop newbie nohau osdevelopment print program range read remainder shape string text theory tsr x86






