Compile as you type

This is a discussion on Compile as you type within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Rocketmagnet, you might be interested in seeing these comments on a similar feature discussed at the community forum of SlickEdit, ...

  1. #31
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    967
    Rocketmagnet, you might be interested in seeing these comments on a similar feature discussed at the community forum of SlickEdit, a nice text editor, that has support for this feature in Java but not C++: http://community.slickedit.com/index...sg2777#msg2777

  2. #32
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    Very interesting reading.

    I went the extra mile and bought SlickEdit recently. I did experience the "refactoring on malformed code" issue.

    However, while I see the point of the article there is one thing I can probably see implemented in the future, Code Insight perhaps being one of the pioneers; syntax errors being dynamically flagged.

    While still complex I would assume it would be doable to have a parser built around the language grammar only.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #33
    Registered User
    Join Date
    Nov 2006
    Posts
    12
    Webmaster,

    many thanks. That was a very interesting read. I am pleased to know that other people are already thinking about this problem, and actively tackling it. Really, that is all I wanted to know.

    One day I will have live compilation. I am happy.

    Hugo

  4. #34
    Registered User
    Join Date
    Nov 2006
    Posts
    12
    Hi guys,
    sorry to drag this topic up again, but I was reading this on another forum, and figured it was an example of what I was talking about:

    http://direct.forum.microchip.com/tm.aspx?m=207198


    Ignore all the C vs ASM arguments It shows that it can sometimes be quite surprising what code is generated by the compiler. In this case (and in others I'm sure) making some changes to the C produced *much* better ASM.

    I suspect (but can't prove) that much of the "just write it and trust the compiler to do it perfectly" is too optimistic. We can help our compiler produce better code, we just need to close that feedback loop.

    Hugo

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 02:49 PM
  2. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Dynamic array of pointers
    By csisz3r in forum C Programming
    Replies: 8
    Last Post: 09-25-2005, 02:06 PM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 03:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21