Z80 Compiler (for Ti)

This is a discussion on Z80 Compiler (for Ti) within the C Programming forums, part of the General Programming Boards category; I know there was some thread about it way back, but I don't know how much information could be salved ...

  1. #1
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165

    Z80 Compiler (for Ti)

    I know there was some thread about it way back, but I don't know how much information could be salved from it.
    Just looking to see if there's a nice C/C++ compiler for Z80. There should be, right?
    So does anyone know anything? It's unfuriating to type BASIC on the calc itself, not to mention that it actually crawls.

    Any tips would be appreciated.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I'm pretty sure IAR has a Z80 compiler. However, C++ for 8/16-bit processors tend to be beyond what you can expect to find - consider that you only have a maximum of 64KB of addressable memory at any given time, so code and data can't realistically be that big.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    I almost expected C++ wouldn't work, but will do fine in this case, then. I'll check it out and see if I can find a compiler. Thanks.
    (Although, I can't seem to find any download for the Z80 IDE/compiler on the site...)
    Last edited by Elysia; 03-18-2008 at 10:57 AM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    Quote Originally Posted by matsp View Post
    I found that, too, but there doesn't seem to be any download link.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elysia View Post
    I found that, too, but there doesn't seem to be any download link.
    I'd contact them and ask if you can have a demo license for that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    Yep, seems to be the only way.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    26
    Quote Originally Posted by Elysia View Post
    I know there was some thread about it way back, but I don't know how much information could be salved from it.
    Just looking to see if there's a nice C/C++ compiler for Z80. There should be, right?
    So does anyone know anything? It's unfuriating to type BASIC on the calc itself, not to mention that it actually crawls.

    Any tips would be appreciated.
    There's an open source compiler for the Zilog Z80. It's called Small Device C Compiler. I haven't done anything with it, but it seemed like a good compiler.

    It's retargetable
    provides full set of data types
    allows for inline assembly

    don't no what your into, but IAR compilers are usually expensive! Or the evals are limited

    Small Device C Compiler Link:
    http://sdcc.sourceforge.net/

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    Awesome! Debugger, as well. Good tip! Excellent! Thanks!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  11. #11
    Internet Superhero
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    934
    I was the author of the old thread on this subject, never really did get it working. Although i was using the same compiler as jake123 suggested. Elysia, please let me know if you get it working
    How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.

  12. #12
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    I don't know how to set up Code::Blocks to compile properly with it. It seems to complain in the linker.

    Compiling: main.c
    sdcc: Calling preprocessor...
    sdcc: Generating code...
    sdcc: Calling assembler...
    Linking console executable: bin\Debug\Test.exe
    obj\Debug\main.o: cannot open.
    sdcc: Calling linker...
    sdcc: Calling linker...
    Process terminated with status 1 (0 minutes, 0 seconds)
    0 errors, 0 warnings
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  13. #13
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Perhaps building on the command line will show you what's going on [yes, that's very old-fashioned, but sometimes the old-and-tried methods work better].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  14. #14
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,165
    I agree. Only, I don't know how to figure out how to see how Code::Blocks calls the compiler or linker.
    And manually calling the compiler is out of the question. That's something I don't want to do.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  15. #15
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elysia View Post
    I agree. Only, I don't know how to figure out how to see how Code::Blocks calls the compiler or linker.
    And manually calling the compiler is out of the question. That's something I don't want to do.
    But surely to figure out what you NEED to tell code::blocks to do, you will need to know how to call the compiler itself.

    By the way, you can always use (gnu,n,d)make to compile the code.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

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

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM

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