Thread: Text editor?

  1. #31
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by matsp View Post
    It is still MUCH easier to write this sort of thing in a language that has ready-made functions to do many string operations, output numbers in almost any format you like, etc, etc.
    Really. Wouldn't this be easy in BASIC?
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  2. #32
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Yes!

  3. #33
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Sly View Post
    So what if you mix C and assembly so you could do it in the least possible time?
    If you feel that your assembler knowledge is BETTER than your C knowledge, then you probably should practice the C knowledge, as it is much more commercially valuable than assembler knowledge (not that assembler is not valuable, but more companies write in C than in x86-assembler).

    And no, I doubt you will get it done faster by writing ANY of it in assembler.

    The reason TAMIS was written in Assembler was to make it small and a RTS (RunTime Support) module. Pascal and C which were the languages available at the time needed their own RTS, so that could not be used for an RTS. Since the PDP-11 machine we shared at school had about 70 terminals, connected to ONE machine, sharing all the users for TAMIS into one 16KB region of memory would help the machine not swap the processes out so much - as the machine had 2MB of RAM. The previous editor was written in Pascal, and used up a total of about 150KB (using overlays, since the memory available to one process was 64KB). When 15-20 people are all using the "big" editor, the machine would run at crawling speed - even for it's days.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #34
    Registered User bboozzoo's Avatar
    Join Date
    Jan 2009
    Posts
    14
    who cares, OP doesn't have a clue anyway

  5. #35
    Registered User
    Join Date
    Nov 2008
    Location
    My computer
    Posts
    65
    Well, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. text editor
    By akki in forum C Programming
    Replies: 5
    Last Post: 07-11-2009, 02:05 PM
  3. C++ For Text Editor?
    By bmroyer in forum C++ Programming
    Replies: 12
    Last Post: 04-05-2005, 02:17 AM
  4. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  5. help about text editor
    By nag in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2003, 11:45 AM