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-07-31 20:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Answers to some questions about DJGPP View 2,436 Replies 5
Original Poster Posted 2003-09-20 00:00 ·  中国 陕西 西安 电信
高级用户
★★
OS/2女孩
Credits 639
Posts 183
Joined 2003-06-14 00:00
23-year member
UID 5148
Gender Female
Status Offline
This is the answers to some previous questions, which may not be helpful to him personally.

But this prompted me to have the idea of writing a manual about DJGPP. (Although there is an English DJGPP manual itself, but, considering that the manual itself is not targeted at Chinese users. So this idea came into being)

1: Where to download?
There are download addresses in the essence area. It needs to be noted that it has no so-called complete distribution package. And it is composed of many packages, similar to building blocks, which need to be built by yourself. Similar to LINUX, you can also choose to compile programs by yourself.

2: How to use, under what system to use, Win98 or DOS?
Supports pure DOS (has restrictions on long filenames, but can be compensated by using DOSLFN)
Fully supports WIN98/2000/ME/XP

3: What to use to edit the source program?
DJGPP can actually be regarded as an implementation (support package) of GNU GCC under DOS. GNU GCC is built on the basis of DJGPP, so many features of GNU GCC can be used to compile programs under DOS.
(That is to say, if you want to find out how to compile programs under DJGPP, it is better to look at the ordinary LINUX programming manual)

4: What to use to compile?
Same as above, if you install it correctly, you can use GCC to compile C programs.
(Multiple languages such as C, C++, FORTAN, ADA, etc. can be compiled on the DJGPP platform.)

5: How to link?
Hey, this is almost impossible to answer. GCC itself automatically calls the assembler and linker, and everything only needs to be written on the command line
GCC xxx.C –O xxx.EXE
That's it

6: Is there a function manual?
There is a complete function manual, but do you think it will be comfortable to read an English C function library? Since GNU often represents POSIX, then you can view any POSIX C function library manual, or FORTAN, ADA, etc. If you need to find some proprietary functions of GCC under DJGPP, you can look forward to the user manual of the DJGPP Chineseization group. (Of course, you can view the INFO function list, and the command line is INFO LIBC)

7: Does it support Chinese characters?
A very general question. In plain language, the C language itself does not support Chinese characters. Do you want to support Chinese characters for the language or the development environment (IDE) itself? It is very simple to make C support the language. There are a large number of examples on the Internet. As for supporting a certain Chinese character encoding, then in DOS, UCDOS and other systems are generally used to support, and to display Chinese characters (GBK) graphically, you can already support UTF-8 encoding through ALLOGRE's functions (the support effect is unknown)
REM 喜欢DOS,因为它的简单
REM 喜欢OS/2,因为它不再矫饰
REM 喜欢BASIC,因为它并不幼稚
REM 喜欢GNU,因为它杂乱无章
Floor 2 Posted 2004-04-02 00:00 ·  中国 北京 中电华通
初级用户
Credits 116
Posts 7
Joined 2004-03-26 00:00
22-year member
UID 21178
Gender Male
Status Offline
How to handle interrupts? The system doesn't recognize it.
Floor 3 Posted 2004-04-12 00:00 ·  中国 河南 南阳 联通
初级用户
Credits 109
Posts 4
Joined 2004-04-11 00:00
22-year member
UID 22222
Gender Male
Status Offline
Allegro claims to support UTF-8, but in reality, it's no different from not supporting it.

It converts all codes greater than 128 into the '^' character in its internal functions.

So it's impossible to support Chinese without modifying its source code.

The interrupt handling functions are very similar to those of TC.
Floor 4 Posted 2004-05-18 00:00 ·  中国 河北 石家庄 桥西区 联通
中级用户
★★
疯狂的流浪者
Credits 276
Posts 56
Joined 2003-09-25 00:00
22-year member
UID 10329
Gender Male
Status Offline
Quote from Ping An 2021 on April 2, 2004 at 02:20:32 PM:
How to handle interrupt service routines?

The system doesn't recognize it.

DJGPP can write interrupt service routines that call real-mode interrupts, and can also write interrupt resident programs in protected mode!
临河居士
http://www.xygod.pc5.org
Floor 5 Posted 2004-05-24 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
I went to check lemonhall's website.
Just followed her article to install DJGPP; thanks!
I wonder if the localization is still in progress?

Can the localization files also be made into info format, so that they can be browsed directly in info.
Floor 6 Posted 2010-10-11 21:28 ·  中国 江苏 南京 电信
新手上路
Credits 4
Posts 2
Joined 2010-09-22 10:26
15-year member
UID 174636
Gender Female
Status Offline
Originally posted by xy_god at 2004-5-18 00:00:

DJGPP can write to call real-mode interrupts, and can also write protected-mode interrupt resident programs!



Why did the program that passed the compilation under Borland C3.1 not pass the compilation under rhide + DJGPP? There is an error at the interrupt function.
Forum Jump: