|
SNSB
初级用户
 
积分 31
发帖 16
注册 2009-5-6
状态 离线
|
『楼 主』:
由UIDE更新联想到 DOS 开发
使用 LLM 解释/回答一下
今天看到UIDE又更新了,佩服之余,忍不住跳出来了说话了。首先申明,我不是牛
人,也是长期在坛子里潜水学习的主。。。
0. 看到UIDE,UMBPCI 等等一流程序的作者们写程序都会标明需要占用多少byte的内存,
固然是系统所限,侧面也反应了开发的难度了。
另外,由这些大牛的开发我也有了一些关于 DOS 开发的想法:
1. 修改内核基本不靠谱(不是我乱泼冷水)。最大的问题是DOS是微软所有,闭源而且
很多限制(那个 MSDOS 6.0 源码就算了吧),Wengier的工作个人感觉也只能停留在HEX
EDIT层面;而兼容问题更是shit。DOS有自己的使命和局限,不可能要求它32位然后多
工什么的,即使是你做到了,你得找程序在上面跑啊,这就不仅仅是技术了。那样我想
FreeBSD,Linux可能更适合你的。当然,做工控,嵌入什么的还是有前景哈,不在此列。
2. DOS ain't dead,但是它也不会变得有多辉煌。原因见1。另外,据说那些造主板的
JS们约定以后不提供兼容的BIOS了,只需要能进DOS GHOST就可以了。晕。。。
3. 现实的做法。我觉的最现实的做法还是像Jack Ellis,japheth还有mplayer for DOS
的那些人一样,看看能在哪些地方增强DOS的功能和可用性,多做实事哈。
另外,这个坛子好像有被水漫掉的感觉,人气很火,但要不要搞个办法让大家尽量少灌
水(当然我自己也偶尔忍不住灌水),免得有用的信息反而很难找。。。
半夜无聊睡不着,闲话一堆,说错了的话大家不要见怪哈。
Today I saw that UIDE has been updated again. After admiring it, I couldn't help but jump out to speak. First, I declare that I am not an expert, and I am also a long-term lurker learning in the forum...
0. When I see that authors of first-class programs like UIDE, UMBPCI, etc., write programs, they all mark how many bytes of memory are needed. Although it is limited by the system, it also reflects the difficulty of development from the side.
In addition, from the development of these great people, I also have some ideas about DOS development:
1. Modifying the kernel is basically not reliable (not that I'm pouring cold water). The biggest problem is that DOS is owned by Microsoft, closed source, and there are many restrictions (let's forget about the MSDOS 6.0 source code); personally, I feel that Wengier's work can only stay at the HEX EDIT level; and compatibility issues are even more of a mess. DOS has its own mission and limitations. It is impossible to require it to be 32-bit and multi-tasking, etc. Even if you do it, you have to find programs to run on it. This is not just technology. Then I think FreeBSD, Linux may be more suitable for you. Of course, there is still prospects for doing industrial control, embedding, etc., which are not in this category.
2. DOS ain't dead, but it won't become very glorious either. The reason is as in 1. In addition, it is said that those motherboard dealers have agreed that they will not provide compatible BIOS in the future, and only need to be able to enter DOS GHOST. Oh my...
3. The practical approach. I think the most practical approach is still like those people such as Jack Ellis, japheth, and mplayer for DOS, to see in which places we can enhance the functions and usability of DOS, and do more practical things.
In addition, this forum seems to have a feeling of being flooded. The popularity is very high, but should there be a way to make everyone try to post less water (of course I also occasionally can't help but post water), so that useful information is not hard to find...
Bored and can't sleep in the middle of the night, talking a lot of nonsense, don't take offense if I say something wrong.
|

SNSB is Not Simply a Biologist! |
|
2009-5-8 17:45 |
|
|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
虽然我也同意多开发点实用程序,不过楼主的有些观点我还是很难苟同。
我认为DOS如果不进化到32位,则必然淘汰。现在的16位DOS限制太多,根本不足以开发现代程序,特别是在硬件支持方面。
16位未来必遭淘汰的。
修改MS-DOS当然不可能,但完全可以去支持参与FreeDOS、FreeDOS-32的开发。
Although I also agree that more practical programs should be developed, I still find it difficult to fully agree with some of the owner's viewpoints.
I think that if DOS does not evolve to 32-bit, it will definitely be eliminated. The current 16-bit DOS has too many restrictions and is simply not sufficient for developing modern programs, especially in terms of hardware support.
The 16-bit one will definitely be eliminated in the future.
It is of course impossible to modify MS-DOS, but it is completely possible to support and participate in the development of FreeDOS and FreeDOS-32.
|

32位才是DOS未来的希望
个人网志:http://sololand.moe |
|
2009-5-9 07:00 |
|
|
SNSB
初级用户
 
积分 31
发帖 16
注册 2009-5-6
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
本来我觉得自己口水太多显得很CUO,但是,还是忍不住再CUO一把。
FreeBSD 从joy的BSD UNIX一直过来这个系统够老够成熟了吧,现在带了一个
GNU/Linux Binary Compatibility 的功能。为什么呢?
那些重量级软件(Adobe Reader, Mathematica, Matlab)的开发商只为GNU/Linux
开发,因为它们是最火的;FreeBSD?他们根本不清楚有多少人在用(以上摘译自
FreeBSD handbook 10.2,粗糙之处就放过吧)。FreeBSD 7.0 的效率比当时主流
的LINUX内核要好(有评测的),但依旧LINUX是最火的。这就是我说的不仅仅是
技术了。这里引用BSD VS. LINUX 的例子,只是想质疑freedos 32 的前景,
如果freedos32不能跑那些重要软件,怎么办?造个linux/win32/freebsd/svr4
的 binary compatibility?
总之,我的意思是,不管是什么OS,都有自己的位置。我也很喜欢DOS,但
不能因此就无视它应该处的位置,强求它替代别人的位置,那样开发出来的不是
DOS,是最新的OS哈。
当然,我开发不强,各位真的做到了,我也甘愿黑着屁股跟着学哈。
Originally, I thought I had too much saliva and looked very cuo, but I still couldn't help cuo-ing again.
FreeBSD has come from joy's BSD UNIX. This system is old enough and mature enough, right? Now it has a function of GNU/Linux Binary Compatibility. Why is that?
The developers of those heavyweight software (Adobe Reader, Mathematica, Matlab) only develop for GNU/Linux because they are the most popular; FreeBSD? They simply don't know how many people are using it (the above is excerpted from FreeBSD handbook 10.2, let's let go of the rough parts). The efficiency of FreeBSD 7.0 was better than the mainstream LINUX kernel at that time (there are evaluations), but LINUX is still the most popular. This is what I said is not just about technology. Here, I use the example of BSD VS. LINUX just to question the prospects of freedos 32. What if freedos32 can't run those important software? Build a linux/win32/freebsd/svr4 binary compatibility?
In short, my point is that no matter what OS it is, it has its own place. I also like DOS very much, but I can't ignore its proper place because of this. Forcing it to replace others' places, then what is developed is not DOS, but the latest OS.
Of course, I'm not good at development. If you all really do it, I'm also willing to follow and learn with my butt blacked.
|

SNSB is Not Simply a Biologist! |
|
2009-5-9 12:33 |
|
|
SNSB
初级用户
 
积分 31
发帖 16
注册 2009-5-6
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
另外,补充一句,大家也看到了,FreeDOS 都停了那么长时间 (FreeDOS is currently at
version 1.0, released on September 3, 2006。维基),这是事实。就算是在开发,又有多少人拿他当最主要的系统?
In addition, I would like to add that as everyone has seen, FreeDOS has been inactive for such a long time (FreeDOS is currently at version 1.0, released on September 3, 2006. Wikipedia), this is a fact. Even if it is under development, how many people take it as the main system?
|

SNSB is Not Simply a Biologist! |
|
2009-5-9 12:42 |
|
|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
UNIX最早是16位的,还是用汇编写的。后来它改用C了,还进化成了32位,你能说它不是UNIX了?UNIX刚出来的时候,CPU还没有保护模式,其实也就是个跟DOS差不多的东西。
Win9x/ME都是16/32位的内核(其中还有一部分就是DOS),NT内核的2k/XP/Vista/7跟它完全不同了,你能说它们不是Win了?
DOS并不是一个很差的操作系统,它小巧、简单,实时性好,有很多别的系统没的优点。即使有很多方面不好,也有很大的改进空间。DOS之所以停滞发展那么严重,关键就是微软的垄断,而且也不思进取,没有把DOS改成32位。它的兴趣完全在NT上。另外UNIX最早也是商业产品,而Linux作为开源的unix-like系统发展迅速,以此作为对比,FreeDOS作为开源的DOS却发展极其缓慢。UNIX从来没有占据过桌面的主流,Linux却能如此发展;DOS曾经那么流行,FreeDOS的发展却这么缓慢。这其中不可能没有原因的。
另外,请注意,我所说的正是延续楼主所说的“开发软件”的话题。我当然是赞成开发实用程序的,但是我认为同时也必须关注内核的开发,因为现在的现实是16位DOS的限制使得软件开发变得极其困难,甚至某些软件理论上就根本开发不出来。论坛上曾经很受关注的AC97驱动就是一个例子,现在的问题是它只能作为32位程序的一部分而存在,却无法写成真正的DOS驱动程序,因为DOS的驱动序必须以TSR的方式成为(相当于)内核的一部分,而32位的TSR却不可能实现。现在新硬件和技术层出不穷,如果不让DOS进化到32位则根本不可能实用起来。除了在嵌入式和一些很底层的工作等,其他地方毫无用处。
再退一万步讲,现在64位CPU都开始普及了,估计64位操作系统也即将开始在桌面普及。先不说DOS的16位严重落伍,未来的CPU完全抛弃对16位软件的支持也是完全有可能的。到那时候DOS再不发展就完全沦为博物馆里的陈列品了。
关于32位DOS对16位应用程序的支持,完全可以用虚拟机实现,就像Win所做的那样,而且可以比它做的更好得多。
楼主可能认为以目前的情况,开发内核不太现实,其实我也是这么认为的;而同时我也认为在无法开发内核的情况下开发软件虽能暂时解决一些问题,长久来看却也没有多大意义;现实就是这么残酷。如果没有任何人做什么事情,DOS也只能面临消亡的命运。对于DOS的未来,我还是比较悲观的,即使我个人很喜欢DOS。
Last edited by brglng on 2009-5-19 at 11:30 ]
UNIX was originally 16-bit and written in assembly. Later it switched to C and evolved into 32-bit. Can you say it's not UNIX? When UNIX first came out, the CPU didn't have protection mode, so it was actually just something similar to DOS.
Win9x/ME have 16/32-bit kernels (with part of it being DOS), while the NT-based 2k/XP/Vista/7 are completely different from them. Can you say they're not Windows?
DOS isn't a very bad operating system. It's compact, simple, and has good real-time performance, with many advantages that other systems don't have. Even if there are many aspects that are not good, there's still a lot of room for improvement. The key reason why DOS has stagnated so seriously is Microsoft's monopoly and lack of ambition to not make DOS 32-bit. Its interest is completely in NT. Also, UNIX was originally a commercial product, and Linux, as an open-source unix-like system, has developed rapidly. By contrast, FreeDOS, as an open-source DOS, has developed extremely slowly. UNIX has never been the mainstream on the desktop, while Linux has developed like this; DOS was once so popular, but FreeDOS has developed so slowly. There must be a reason for this.
Also, please note that what I'm saying is exactly continuing the topic of "developing software" mentioned by the original poster. I certainly agree with developing practical programs, but I think we must also pay attention to kernel development because the reality is that the 16-bit DOS limitations make software development extremely difficult, and even some software can't be developed in theory. The AC97 driver that was very concerned about on the forum is an example. The problem now is that it can only exist as part of a 32-bit program and can't be written as a real DOS driver because DOS drivers must become (equivalent to) part of the kernel in the form of TSR, and 32-bit TSR can't be implemented. With new hardware and technologies emerging one after another, DOS can't be practical at all if it doesn't evolve to 32-bit. Except for embedded and some very low-level work, it's useless elsewhere.
To take a step back, now 64-bit CPUs are starting to be popular, and it's estimated that 64-bit operating systems will soon be popular on the desktop. Not to mention that DOS's 16-bit is seriously outdated, it's completely possible that future CPUs will completely abandon support for 16-bit software. At that time, if DOS doesn't develop, it will completely become an exhibit in the museum.
Regarding the support of 32-bit DOS for 16-bit applications, it can completely be implemented using virtual machines, just like Windows does, and it can be done much better.
The original poster may think that developing the kernel is not realistic at present, and actually I also think so; and at the same time, I think that developing software without developing the kernel can temporarily solve some problems, but in the long run, it's not of much significance; the reality is so cruel. If no one does anything, DOS will only face extinction. I'm relatively pessimistic about the future of DOS, even though I personally like DOS very much.
Last edited by brglng on 2009-5-19 at 11:30 ]
|

32位才是DOS未来的希望
个人网志:http://sololand.moe |
|
2009-5-19 11:01 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
硬盘已经接近2T这个传统分区表的极限,桌面型操作系统正面临一个转折点。
目前的形势是采集卡很多已经转向linux和win,由厂家提供驱动,开发反而更为简单;居于linux、win的嵌入式系统、机床比比皆是;高速设备采用了高精度的定时器比兼容8086的那个8253、8254更为精确;精简版的linux也就几M,PE也就40多M,摒弃大多数用不上的模块也可以跑得很流畅。DOS也许到了该说再见的时候了。
The hard disk is approaching the limit of the traditional partition table of nearly 2T, and desktop operating systems are facing a turning point.
At present, the situation is that many capture cards have turned to Linux and Windows, with drivers provided by manufacturers, and development is反而 simpler; embedded systems and machine tools based on Linux and Windows are everywhere; high-speed devices use high-precision timers which are more accurate than the 8253 and 8254 compatible with the 8086; the streamlined version of Linux is only a few M, and PE is only more than 40 M, and it can run smoothly by discarding most unnecessary modules. DOS may be at the time when it's time to say goodbye.
|
|
2009-5-19 11:33 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
DOS唯一可能长期存在的理由是:BIOS不被完全淘汰,即使EFI成为主流后也向下兼容BIOS,另外一个硬件基础是SATA的X代速度达到质的飞跃,出厂的BIOS设置不再是兼容IDE模式(int13 必须依靠的环境),那时才是DOS的终结。所以目前看,DOS在硬盘级维护仍有用武之地。另外,LINUX或WINPE的引导和通用性等方面尚未成熟,这时否定DOS的说法都是站不住脚的。
Last edited by gmy on 2009-5-24 at 03:28 ]
The only possible reason for DOS to exist for a long time is: BIOS is not completely eliminated. Even after EFI becomes mainstream, it is backward compatible with BIOS. Another hardware basis is that the X-generation speed of SATA reaches a qualitative leap, and the factory BIOS settings are no longer compatible with the IDE mode (the environment that int13 must rely on). Only then will DOS come to an end. So for now, DOS still has its place in hard disk-level maintenance. In addition, the boot and versatility of LINUX or WINPE are not yet mature. At this time, the statements that deny DOS are unfounded.
Last edited by gmy on 2009-5-24 at 03:28 ]
|

DOS之家 http://doshome.com 站长 葛明阳 |
|
2009-5-24 03:23 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2009-5-24 07:24 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by brglng at 2009-5-9 07:00 AM:
我认为DOS如果不进化到32位,则必然淘汰。现在的16位DOS限制太多,根本不足 ...
可 以 拿 FreeDOS 去 改 啊 , 不 過 我 曾 看 過 了 Kernel 的 CVS , 太 多 枝 節 了 !
單 是 把 那 些 源 碼 整 理 , 也 得 花 大 量 功 夫 , 幾 年 來 沒 有 人 肯 做 , 不 要 說 做 , 肯 說 的 人 也 不 多 ...
近 來 Kernel 還 好 又 有 些 測 試 版 , 可 是 仍 不 是 100% 兼 容 , 只 看 兩 者 的 CONFIG.SYS 差 異 有 多 大 就 知 道 。
Last edited by johnsonlam on 2009-5-29 at 13:50 ]
Originally posted by brglng at 2009-5-9 07:00 AM:
I think that if DOS does not evolve to 32-bit, it will inevitably be phased out. The current 16-bit DOS has too many limitations and is simply insufficient...
You can modify FreeDOS, but I have looked at the Kernel's CVS before, and there are too many details!
Just organizing that source code would take a lot of effort. No one has been willing to do it for several years, let alone talk about doing it. Few people are even willing to talk about it...
Recently, there are some new test versions of the Kernel, but they are still not 100% compatible. You can tell by the difference in CONFIG.SYS between the two.
Last edited by johnsonlam on 2009-5-29 at 13:50 ]
|

我 的 網 站 - http://optimizr.dyndns.org
|
|
2009-5-29 13:49 |
|
|
enjoyer
中级用户
   部落守望者
积分 351
发帖 140
注册 2006-6-19
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
看了大家的讨论,忍不住想发表些看法。我想说的是为什么我们总是在谈论DOS的内核级开发,个人的感觉是如果能够有修改内核的能力,干吗不重新开发一个OS内核,为什么一定要跟DOS有所纠缠?(就因为DOS曾经辉煌过,很经典?) 为什么我们总是离不开修改或者二次开发这样的活动,就因为DOS有用(暂时或者永远),就因为修改别人的内核比重新开发容易(一定就容易吗)?
可能有人会说,你以为开发个OS容易呀。是的,开发OS不容易,它至少是一个大型系统工程,可能还是一个国家的重点项目。但是话说回来,如果我们不敢于朝这这个方向去做,就不可能有任何机会。现在64位的体系架构已经出来了,而且64位必定是未来的趋势。所以我们也可以朝着64位的方向去考虑,做一个64位的内核。即便现在或者未来相当长的时间内可能还派不上用场,但只要我们的内核做的好,架构灵活,效率又够高,总有一天会有的人去用它,完善它。Linux当年不也是这样流行起来的吗。而且我们也不必太争执DOS或者FreeBSD/FreeDOS,linux哪个更好,哪个更有用,这些OS都可以拿来借鉴,为我所用。毕竟未来是多元化的世界,每一个不同OS都有适合自己的定位。好了,说了这么多。其实就是希望我们有一天也有个拿的出手的OS,呵呵
After reading everyone's discussions, I can't help but want to express some opinions. What I want to say is why do we always talk about the kernel-level development of DOS? Personally, the feeling is that if we have the ability to modify the kernel, why not redevelop an OS kernel? Why must we be entangled with DOS? (Just because DOS was once glorious and very classic?) Why do we always stay away from modification or secondary development activities? Just because DOS is useful (temporarily or forever), just because modifying someone else's kernel is easier than redeveloping it (is it definitely easier)?
Maybe someone will say, do you think developing an OS is easy? Yes, developing an OS is not easy. It is at least a large-scale system engineering, and maybe even a key project of a country. But then again, if we don't dare to go in this direction, we won't have any opportunities. Now the 64-bit architecture has come out, and 64-bit is definitely the future trend. So we can also consider the 64-bit direction and make a 64-bit kernel. Even if it may not be useful for a long time now or in the future, but as long as our kernel is well-made, the architecture is flexible, and the efficiency is high enough, one day someone will use it and improve it. Wasn't Linux popular like this back then? And we don't need to argue too much about which is better between DOS or FreeBSD/FreeDOS, Linux, these OSs can all be used for reference and for our own use. After all, the future is a diversified world, and each different OS has its own suitable positioning. Well, after talking so much. Actually, I just hope that one day we will have an OS that we can be proud of, hehe
|

一切从底层开始 |
|
2009-5-30 03:20 |
|
|