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:50
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Regarding the problem that the program cannot run after being larger than 64K View 2,228 Replies 7
Original Poster Posted 2010-11-09 11:45 ·  中国 广东 深圳 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
My program, after compilation and linking, is about 60-70K, in small memory model...
I found that on some DOS machines, it can't run when exceeding 64K, but on some machines, it can run... The program hasn't changed...
Why is this?
Floor 2 Posted 2010-11-16 22:18 ·  中国 北京 联通
高级用户
★★
Credits 506
Posts 187
Joined 2005-12-04 22:41
20-year member
UID 46500
Gender Male
Status Offline
How about trying himem?
Floor 3 Posted 2010-11-18 21:42 ·  中国 广东 深圳 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
All added, is there any limitation under certain circumstances?
Floor 4 Posted 2010-11-26 07:49 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
Compile into Large mode 44
Floor 5 Posted 2010-11-29 17:34 ·  中国 香港 城市电讯有限公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
22-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by yysn at 2010-11-9 11:45 AM:
I found that on some DOS systems, it cannot run when it exceeds 64K, but on some machines, it can run... The program has not changed...
Why is that?



Believe it is a problem with HIMEM and EMM386 configuration. Here are some files and documents that can replace HIMEM and EMM386. There are examples inside. Although it is in English, you can give it a try:

http://johnson.tmfc.net/dos/driver.html

我 的 網 站 - http://optimizr.dyndns.org
Floor 6 Posted 2010-12-03 15:53 ·  中国 广东 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
Compile to Large mode 44
----------------------------------
After compiling to L mode, the program has become much larger!
Floor 7 Posted 2010-12-03 15:57 ·  中国 浙江 杭州 拱墅区 电信
初级用户
Credits 30
Posts 9
Joined 2008-04-27 20:00
18-year member
UID 117121
Gender Male
Status Offline
1、Can the owner explain what program you are and what compiler you use?
2、Small memory model, due to the "segment" reason, because the limit is 2^16 = 64k, so...
Floor 8 Posted 2010-12-13 21:16 ·  中国 广东 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
The person upstairs, my compiled executable file exceeds 64K.
Forum Jump: