Re: [Freedos-user] XT REGs
Hi Alvin, > Hi Eric -- I now know what I need which is X86 Real Mode. using WATCOM C. > I plan to use FREERTOS on FREEDOS. Thanks. ALvin Actually DJGPP also has good functionality to measure exact timing. FreeDOS does not use much CPU no matter which mode you use - real mode or vm86 - you can also use DJGPP. However, you should to try to access files at time critical moments. Also, I found USB access to be slow, for example if you have USB mouse or keyboard with BIOS support (the BIOS makes them look like PS/2 but access is slow that way). What else could be slow? Maybe handling too many hardware interrupts in little time. You can use for example uclock() to measure time. Of course doing everything in real mode means that it is a bit faster to call DOS / BIOS interrupts and to handle hardware interrupts, but you have less RAM to access. You could "swap" some data to/from XMS which is relatively fast. Note that if you use protected mode (DJGPP or similar) you want to configure your DOS extender (CWSDPMI, Japheth HX, DPMIONE, DOS32A) to not use a swap file, as swapping is slow again. Also note: DOS is only in real mode if no EMM386 or similar protected mode based drivers are loaded :-) Eric -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] XT REGs
Hi Eric -- I now know what I need which is X86 Real Mode. using WATCOM C. I plan to use FREERTOS on FREEDOS. Thanks. ALvin On Tue, Mar 29, 2011 at 3:53 AM, Eric Auer wrote: > > Hi Alvin, > > > Hi -- I am a newbie to freedos. Does FREEDOS only use the XT register set > > when compiling programs? Thanks. Alvin... > > If that is a 16 / 32 bit related question: If you want > to compile C programs to run in 32 bit mode in any DOS > including FreeDOS, you can use modern compilers such as > DJGPP (GNU C and C++ for DOS, delorie.com) or OpenWatcom. > > If you want to compile 8086 compatible programs, you can > use OpenWatcom or classic compilers like Turbo C but not > DJGPP because the latter is only for 32 bit. For others, > it is usually a command line option of the compiler to > select which CPU you want to be compatible with. > > Eric > > > > -- > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] XT REGs
Hi Alvin, > Hi -- I am a newbie to freedos. Does FREEDOS only use the XT register set > when compiling programs? Thanks. Alvin... If that is a 16 / 32 bit related question: If you want to compile C programs to run in 32 bit mode in any DOS including FreeDOS, you can use modern compilers such as DJGPP (GNU C and C++ for DOS, delorie.com) or OpenWatcom. If you want to compile 8086 compatible programs, you can use OpenWatcom or classic compilers like Turbo C but not DJGPP because the latter is only for 32 bit. For others, it is usually a command line option of the compiler to select which CPU you want to be compatible with. Eric -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] XT REGs
At 07:28 PM 3/28/2011, Alvin P. Schmitt wrote: >Hi -- I am a newbie to freedos. Does FREEDOS only use the XT >register set when compiling programs? Thanks. Alvin... Well, beside that FreeDOS itself doesn't compile any programs, what do you refer to as "XT register"? What x86 level of registers you can use depends on the compiler (and of course target CPU) you're using. And to some degree if you are compiling your programs for plain "real mode" or if you are using any kind of "DOS Extender". But then I guess you wouldn't ask such a question in th first place... Ralf -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user