Thread: Read/Write a binary variable length sequential file in C

  1. #16
    Registered User
    Join Date
    Jun 2004
    Posts
    201
    Quote Originally Posted by mitakeet
    There are not very many environments where there is a lack of capable C++ compilers, though I can't speak about mainframes. C++ compilers do better type checking (even on C code) and almost all warnings/errors you get from a C++ compiler are likely bugs in your C code. Just stick with ANSI C and use a C++ compiler while doing your development and testing and when you port it to your mainframe environment you should not have any problems at all.
    FYI, I happen to work in such an environment. Coding for the pluto mainboard which you can find in casino slot machines for instance. Code gets compiled to 4MB PROMS that you stick onto the board.
    We use an altered gcc.

    In general C is considered more platform independant.
    C++ often has a hard time to be platform independant because it's so big. Many compilers don't include some kind of feature or have bugs

  2. #17
    Registered User
    Join Date
    Jul 2005
    Location
    Austin Texas
    Posts
    7
    Well I actually figured out that my malloc problems were due to header problems in the way Studio sets up my ccp's. I had to delete the header stuff and compile with C instead of C++ and then the malloc worked ok. I guess I will hold off on truck driving school for a while. Besides, I would probably be a 'road rage' kind of guy anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM