asm and c language

来源:互联网 发布:高中理科辅导软件 编辑:程序博客网 时间:2024/04/30 18:47

today i read an article in http://blog.csdn.net/codesnail/archive/2009/10/10/4652380.aspx. and have some word to say.

 

in that paper, the author consider abstract is hiden what is didn't need. but in my opinion, abstract is a method which is to make people accept object easily. in software develop, ADT(abstract data type), which is represent object in real world. however, there are gesture and attribute in an object. that corresponding to member function and attribute in a class in c++. (actully, class in C++ is as same as ADT in c)

 

for c language, we exert abstract to understand object in real-world, and express it with ADT in C language. in asm you also can use this thinking, but it is hard to code. the authod also mention this aspect. in my experience, asm is not everywhere we need. develop initial machine, we need it, whereas in data processing is not essential. in data processing we can make use of c or c++, or even in java.

 

i have develop a small os which can roll state of process. to develop os, initial and set mapping address in chip is the first step.  in those code, i write asm, and in 'switch' function, it nedd too. others is c code.

 

P.s if you want my os(named lyso), please contact me with e-mail.

原创粉丝点击