China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 02:21
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question about how to do my work under DJGPP View 1,022 Replies 6
Original Poster Posted 2003-08-14 00:00 ·  中国 辽宁 沈阳 中国科学院金属研究所
初级用户
Credits 107
Posts 2
Joined 2003-08-14 00:00
22-year member
UID 8583
Gender Male
Status Offline
I have a special 80486 computer
I need to write programs for it
The program's function is very simple
But it needs 4MB of memory
So no operating system is used
But the CPU has to run in protected mode
I think this is an embedded application
Cross-compilation can be done under Linux
But I'm not familiar with Linux
Can this be done under DJGPP?
Floor 2 Posted 2003-08-17 00:00 ·  中国 陕西 西安 电信
高级用户
★★
OS/2女孩
Credits 639
Posts 183
Joined 2003-06-14 00:00
23-year member
UID 5148
Gender Female
Status Offline
No.
REM 喜欢DOS,因为它的简单
REM 喜欢OS/2,因为它不再矫饰
REM 喜欢BASIC,因为它并不幼稚
REM 喜欢GNU,因为它杂乱无章
Floor 3 Posted 2003-08-17 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Actually it can, but this computer's hardware specs are too low. I recommend using DOS+DJGPP on a newer computer for better results.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2003-08-17 00:00 ·  中国 陕西 西安 教育网
高级用户
★★
OS/2女孩
Credits 639
Posts 183
Joined 2003-06-14 00:00
23-year member
UID 5148
Gender Female
Status Offline
It really won't do. The documentation specifically emphasizes that DJGPP is not capable of developing embedded systems.
The "embedded" here itself means being independent of DOS.

Please use info faq or info djgppfaq.info to look up the relevant content, and in particular please pay attention to the 2002 DJGPP notice
and make sure your DJGPP is the latest version, 2.03.

DJGPP can be said to be a UNIX PORT; what real development work requires is mastery of GCC and AT&T ASM.
Choosing the correct development platform is the key to a project's success. LINUX is your best choice. (Learning the knowledge needed for the project
is counted as part of the project's development cost, so learning is a necessary part of successfully developing a project.)

Finally, what needs to be explained is that in fact development work has almost nothing to do with LINUX itself. Because what you need to develop is
a new system, and the required technology is cross-programming (MIX-LANUAGE PROGRAMING), along with a full understanding of the
machine itself. So even if DJGPP were competent for your work, the technologies you need to face would not change at all.
The tools you need to face are still GCC and AT&T ASM.

Your machine's hardware specs are basically the same as the one I have on hand, and it has a lot of development potential. However, one point needs to be clarified. If you
need to do advanced applications, there is absolutely no need to redevelop an embedded system. You can use ROM-DOS and other DOS systems,
together with the corresponding program packages.

As for the interface, DJGPP+ALLOGE is fully competent. A successful example is a famous domestic antivirus program (its
DOS-side antivirus program has a very beautiful interface; the Chinese documentation for ALLOGE has already been localized, and I am currently
working on the Chinese localization of DJGPP.)

However, DJGPP eliminates a lot of older knowledge, especially since DJGPP's hardware access mechanism is different from traditional DOS programs.
See INFO "HIDDEN FEATURE" to see some of its other characteristics.

I hope you choose the right development platform. If there are any more questions, especially about DJGPP, please write to discuss them.
lemonhall@vip.sina.com

You can also send mail to listserv@delorie.com to subscribe to that mailing list and ask the broad user community directly.
The mail content should be add djgpp, no subject needed. (All in English, 10-30 messages per day.)

When asking questions, please do not send them to this address.
REM 喜欢DOS,因为它的简单
REM 喜欢OS/2,因为它不再矫饰
REM 喜欢BASIC,因为它并不幼稚
REM 喜欢GNU,因为它杂乱无章
Floor 5 Posted 2003-08-18 00:00 ·  中国 陕西 西安 教育网
高级用户
★★
OS/2女孩
Credits 639
Posts 183
Joined 2003-06-14 00:00
23-year member
UID 5148
Gender Female
Status Offline
I correct one mistake of my own: DJGPP can indeed develop operating-system-level software.

However, it needs NASM support.

NASM can compile 16-bit programs, and that way service programs such as CWSDPMI and GO32-V2 can be brought in.
Only in this way can DJGPP programs run.

But you absolutely must not use the DAS that comes with DJGPP for development.

As for mixed programming with DJGPP+NASM, please see
http://asmcos.51.net/cgi-bin/newbbs/

NASM's current version number is still less than 1, and there have been few updates since 95. Please take note of this.
REM 喜欢DOS,因为它的简单
REM 喜欢OS/2,因为它不再矫饰
REM 喜欢BASIC,因为它并不幼稚
REM 喜欢GNU,因为它杂乱无章
Floor 6 Posted 2003-08-18 00:00 ·  中国 陕西 西安 教育网
高级用户
★★
OS/2女孩
Credits 639
Posts 183
Joined 2003-06-14 00:00
23-year member
UID 5148
Gender Female
Status Offline
An example of development is the Lingix project
http://gro.clinux.org/project/showfiles.php?group_id=70

Its NASM0。98 download version runs very stably. You can refer to this kind of development model.
REM 喜欢DOS,因为它的简单
REM 喜欢OS/2,因为它不再矫饰
REM 喜欢BASIC,因为它并不幼稚
REM 喜欢GNU,因为它杂乱无章
Floor 7 Posted 2003-08-18 00:00 ·  中国 辽宁 沈阳 中国科学院金属研究所
初级用户
Credits 107
Posts 2
Joined 2003-08-14 00:00
22-year member
UID 8583
Gender Male
Status Offline
Thanks to all the experts for the pointers
Special thanks to lemonhhall
Forum Jump: