Code review

This is a discussion on Code review within the C Programming forums, part of the General Programming Boards category; Originally Posted by brewbuck Why do you list "gcc version 4.3.3" as a dependency? Are you trying to say that ...

  1. #16
    Registered User
    Join Date
    Oct 2009
    Posts
    8
    Quote Originally Posted by brewbuck View Post
    Why do you list "gcc version 4.3.3" as a dependency? Are you trying to say that your code is non-portable?

    Why do you list the specific header files as dependencies? Is the fact that the source module includes these files not enough evidence? Anybody who updates your source module to include some new header has to make the update in two places -- the actual #include list, and the comment header at the front.

    The sense I get as an imaginary interviewer, is that you're trying too hard.
    Thanks a lot for the feedback! I agree, it does make the impression, doesn't it...

  2. #17
    Registered User
    Join Date
    Oct 2009
    Posts
    8
    Quote Originally Posted by quzah View Post
    You were worried about the cache with the looping involved.I was only suggesting using a single array in case it would help with that.
    And that's appreciated! Would you suggest using a 1-D only? If so, what exactly are the benefits? I guess you wouldn't have 2 redirections as for the 2-D, but other than that, I dont know of any other benefit.

    You mention this is for embedded programming. Is the speed you get by using pthreads worth the additional overhead required to use multiple threads instead of just one?


    Quzah.
    I was thinking about that too... execution time wise it's definitely worth it. as for the resource overhead, I guess that really matters on the type of embedded hw. I do have to admit that I'm not exactly clear on the exact resource overhead. the company produces medical devices, though, so I assume that response time is likely to be critical.

    Thanks!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code Review for upcoming contest
    By Darryl in forum Contests Board
    Replies: 2
    Last Post: 02-28-2006, 02:39 PM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 02:37 PM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

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