flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > Please Shut UP!!! Goto page Previous 1, 2 |
Author |
|
DennisCGc 23 Jan 2005, 00:47
Quote: Every Programmer should try Menuet at least ones in his life I disagree, you see, not every programmer is interested in other operating systems (and yes, I know some people who are programmers but are not interested in other operating systems.) So, who are you to change that ? Quote: Menuet is small Simple and perfect OS As some people stated, it's small, but far from perfect. Because it doesn't have (YET) Office applications, etc. (applications that an AVERAGE user needs). Quote: Every Programmer can read n understand it's kernel with minimun knowlage Not everyone is able to do that, for example: I can't read and understand some parts. Quote:
This IS YOUR opinion, and not everyone's opinion. DennisCGc. |
|||
23 Jan 2005, 00:47 |
|
Endre 23 Jan 2005, 13:58
[quote="crc"]
Quote:
I think if we will once have a kernel with comprehensive services then we should write an own library in assemby. That would be democratic. Take a look at the unix systems. If you are developing in program languages others than C(rap) you just pull an overhead in neck in order to convert your calls to C-calls. It's fooly antidemocratic and uneffective. If we had a low-level library entirely written in assembly then, I guess, we reached our aims. So we can still change the future. But we first have to extend capabilities of our loved OS. |
|||
23 Jan 2005, 13:58 |
|
ASHLEY4 23 Jan 2005, 14:55
I agree with Endre, because you know which OS the asm lib will berun on and how MenuetOS deals with things, it would not be too hard to make libs in assembly.
\\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. |
|||
23 Jan 2005, 14:55 |
|
spideros1 24 Jan 2005, 07:16
I haven't seen any overhead in C system calls under unix. System calls can be inlined. It's soooo hard to use asm system call in C. For example
Code: void __menuet__wait_hs(int hs) { __asm__ __volatile__("int $0x40"::"a"(5),"b"(hs)); } I don't see any overhead in linux applications coded in asm. You can jus put syscall number in eax, parameters in registers, do int 0x80 and you have return value in eax. You don't have to link asm programs with C library. For example it's not worth to code in asm for GUI libraries such as GTK or even X11, because you end up converting structures from C to asm and calling library functions. I think that people don't code in asm for unixes because it would prevent their programs from running on another CPUs. There are other CPUs which are better that x86. If everyone in the world used CPUs with the same instruction set, you wouldn't have to code apps in high level languages, but they allow you to write code as you think it should work instead of thinking which registers you should use. If there was no C/C++ you wouldn't have games such as DOOM 3 or Half Life 2. Maybe it would be better to write programs directly using hex opcodes ? |
|||
24 Jan 2005, 07:16 |
|
Endre 24 Jan 2005, 10:13
spideros1 wrote: I haven't seen any overhead in C system calls under unix. Correct! And C is the only one from the wide range of programming languages with this characteristics. It's because of libc. Please be so kind to read a bit more thoroughly the posts you respond to. Don't become blind if it's about C. Why do you think that C is the only one language? I know people writing programs in other languages (just for instance: ada, assembly, forth, fortran, etc.), too. I hope that with 15 years C programming routine you will see the situ similarly. I advise you searching the web for key-words "safety critical". You will cry about what those safety people write about your C language. And what is sadder: they are right. One more example: Did you ever try DDD (you know the graphical front end for gdb written in C/C++, being actively developped for about 10 years)? And did you ever try GVD (you know the graphical front end for gdb written in Ada95)? Have you experienced any quality differences? I have no longer DDD installed... |
|||
24 Jan 2005, 10:13 |
|
spideros1 25 Jan 2005, 00:31
I'm not blind about C. I didn't want to offend anyone. What I was saying is C compiler may inline system calls, and there's not only GNU libc. For example dietlibc is lightweight C library wilth all crappy functions separated from main code. I'm not saying that C is perfect but it does the job that I want, but recently I'm trying to code OS in C++.
I also code in asm, Java, C++, PHP and other languages. I don't like GDB and DDD (user interface is horrible). I have never tried GVD. Actually I don't think asm is bad. It's harder to work with especially when I code program for multiple CPUs (avr, 8051, m68k) it's faster to code small application in C, but you get smaller code when you use asm. I think that asm is good for apps that you change hardly at all. So when I code an app for microcontroller I write prototype in C then I recode it in asm to get more optimized code. I don't care what they write about C and I have no reason to cry When I see something which is easier to use, I just use it. BTW: Is asm safety-critical ? I think that every language is useful when you code certain things. I just can't imageine Quake ]I[ written in Java. |
|||
25 Jan 2005, 00:31 |
|
spideros1 25 Jan 2005, 00:38
BTW: Why people are screaming that C library for Menuet is so bad ? I didn't want to port whole unix environment. I just wanted to port few good games (doom, quake 1) and code good web browser with some more advanced features (javascript, java, flash, etc.)
|
|||
25 Jan 2005, 00:38 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.