Puneet Varma (Editor)

Deep Blue C

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Mephisto genetics deep blue c preharvest cut and trim


Deep Blue C is a compiler for a subset of the C programming language for the Atari 8-bit family distributed by the Atari Program Exchange. The compiler is a version of Ron Cain's public domain Small-C modified by John Howard Palevich to run on the Atari computer hardware. Palevich also wrote the Atari 8-bit game Dandy. The syntax supported by Deep Blue C is close to that of ANSI C with significant limitations.

Contents

The source code to the compiler was sold as Deep Blue Secrets, also from APX.

Limitations

The following language constructs are not supported:

  • structs
  • unions
  • multidimensional arrays
  • floating point numbers
  • sizeof operator
  • type casting
  • functions return integer only results
  • Other non-standard properties of Deep Blue C:

  • The last part of switch clause must be ended with: break, continue, or return.
  • The maximum length of source code line has to be less than 80 characters.
  • The number of arguments for functions cannot exceed 126.
  • $( and $) are used instead of { and }.
  • Sample program

    The exemplary program writes the "Hello World!" message on the user screen.

    main() $( printf("Hello World!"); $)

    Performance

    The Deep Blue C compiler does not create the native executable for 6502 processor but intermediate code called C-code. The C-code is then executed by C-code interpreter. According to Atari 8-bit FAQ the compiler creates binary code for Intel 8080 processor and then executed by 8080 virtual machine. This is the main cause of low performance of generated code.

    References

    Deep Blue C Wikipedia