Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!styx!ames!ucbcad!ucbvax!hplabs!hp-pcd!hpcvc0!hpcvck!scott From: scott@hpcvck.HP (Scott Linn) Newsgroups: comp.lang.c Subject: Re: MIX-c compiler experiences Message-ID: <4010001@hpcvck.HP> Date: Fri, 1-May-87 18:46:15 EDT Article-I.D.: hpcvck.4010001 Posted: Fri May 1 18:46:15 1987 Date-Received: Tue, 5-May-87 06:31:06 EDT References: <3209@sunybcs.UUCP> Organization: Hewlett-Packard Co., Corvallis, Oregon Lines: 45 Just thought I would put my two cents worth into the discussion... I also bought the MIX compiler for the price, and the fact that it will run on my HP150 (generic MSDOS). It has been pretty good for the price, but I've had a few problems, too. First, the enumerated data types don't assign constants to the identifiers. Example: enum day {sun, mon, tue, wed, thu, fri, sat} next_day; . . . switch (next_day) { case sun: (whatever) case mon: (whatever) etc. The MIX compiler gives an error at each case statement, saying something to the effect that the compiler was expecting a constant, as it should. But, it was apparent that the enum statement did not assign sun, mon, etc. as constants. Anyway, I never got it to work. Next, I was trying to open PRN: as a binary file, to perform a screen dump. I used a routine which changed the printer device to raw mode as well. The program never worked, as the program never printed the data in raw mode (according to my dos routine, the printer *was* in raw mode). After transferring the program to Datalight C with the minor changes necessary for the DOS calls, the program worked just fine. So, I know that the programming was correct. Anyway, I called the MIX company, and they weren't helpful at all. I bought the Datalight Optimum C package, and have been very pleased with it. Compiles are very easy with the controller program they give you, and the make utility is nice. I would recommend this compiler over MIX C any day. If anyone has any comments as to what I may have been doing wrong (if anything) in my MIX programs, let me know! Scott Linn hplabs!hp-pcd!hpcvck!scott