『楼 主』:
DJGPP的一些问题的回答
使用 LLM 解释/回答一下
这是以前一些问题的回答,对他本人可能没有帮助。
但是,这促使我产生了写一个有关DJGPP的手册的
想法,(虽然本身有一个英文的DJGPP手册,但,
鉴于那个手册本身对中国的使用者没有针对性。
所以才产生的这种想法)
一:在何处下载?
精华区里有下载的地址,需要说明的是,它没有所谓的完整分发包。而且由许多包组成的,类似积木一需要自己去搭建它。类似LINUX,你还可以选择自己编译程序。
二:怎么用,在什么系统下用,win98还是dos,?
支持纯DOS(在长文件名上有限制,但是可以使用DOSLFN来补偿)
完全支持WIN98/2000/ME/XP
三:用什么编辑源程序?
DJGPP其实可以看做一个GNU GCC在DOS下的一个实现(的支持包)。在DJGPP的基础上构建了GNU GCC,从而可以使用很多GNU GCC的特征来在DOS下编译程序。
(也就是说,你要查找如何在DJGPP下编译程序,不如去看看普通的LINUX编程手册)
四:用什么编译?
同上,如果你正确地安装后用GCC就可以编译C程序了。
(DJGPP平台上可以编译C,C++,FORTAN,ADA等多种语言。)
五:怎样链接?
哎,这几乎没法回答,GCC本身为你自动地去调用汇编器,连接器,一切只需要在命令行上写
GCC xxx.C –O xxx.EXE
就这么简单
六:有函数手册吗?
有完整的函数手册,但是你认为去看一个英文的C函数库会很舒服么?既然GNU很多时候代表着POSIX,那么查看任何一个POSIX的C函数库手册,或者FORTAN,ADA等等就可以了。如果你需要查找某些DJGPP的下GCC的专有函数,可以期待DJGPP中文化小组的使用手册。(当然你可以去查看INFO的函数列表,命令行为INFO LIBC)
七:支持汉字吗?
很笼统的问题,通俗地讲C语言本身是不支持汉字的。你要支持汉字的是语言还是开发环境(IDE)本身呢?要C去支持语言是很简单的,网上有大量的例子。至于支持某种汉字编码,那么DOS下一般都使用UCDOS等系统来支持,在图形上显示汉字(GBK)的话,已经可以通过ALLOGRE的函数来支持UTF-8的编码(支持的效果未知)
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)
|