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; Code blocks sucks, it took me an hour to figure out how to get the thing working, then again, I ...

  1. #31
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Code blocks sucks, it took me an hour to figure out how to get the thing working, then again, I never did get it working.

  2. #32
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    Then if someone can suggest anything better except for Dev-C++/GCC or whatever it was, then I'll happily listen. I can't even figure out what the resulting linked file is and what the Ti actually accepts.
    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.

  3. #33
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Quote Originally Posted by Elysia View Post
    Then if someone can suggest anything better except for Dev-C++/GCC or whatever it was, then I'll happily listen. I can't even figure out what the resulting linked file is and what the Ti actually accepts.
    What happened to Visual C?

  4. #34
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    I'm not under the impression that it supports additional compilers.
    It wasn't designed to compile for other platforms than Windows.
    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.

  5. #35
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    I assume you installed codeblocks without having it install the gcc compiler ya?

  6. #36
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    Yes, that's what I did, since I have no need for the compiler.
    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.

  7. #37
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by Elysia View Post
    Then if someone can suggest anything better except for Dev-C++/GCC or whatever it was, then I'll happily listen.
    Did you look into tigcc?
    Quote Originally Posted by Dave_Sinkula View Post
    Quote Originally Posted by Elysia View Post
    I can't even figure out what the resulting linked file is and what the Ti actually accepts.
    It looked like you were trying to build an Intel hex file that you were calling it an .exe.
    sdcc.exe --out-fmt-ihx -mz80 --profile --verbose --debug --out-fmt-ihx -mz80 --profile --verbose --stack-auto --debug -ID:\Program\SDCC\include -c main.c -o obj\Debug\main.rel
    sdcc: Calling preprocessor...
    sdcc: Generating code...
    sdcc: Calling assembler...
    sdcc.exe -LD:\Program\SDCC\lib -o bin\Debug\Test.exe --out-fmt-ihx -mz80 --profile --verbose --debug --out-fmt-ihx -mz80 --profile --verbose --stack-auto --debug obj\Debug\main.rel
    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
    I though this was saying to compile the .c into a .rel, and then link the .rel into an ".exe", and having no errors or warnings.

    I would normally expect some .a type of file output from the linker which is then later translated into a .hex file for use with programming into the calculator. But then I'm not familiar with your system.
    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.*

  8. #38
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    Quote Originally Posted by Dave_Sinkula View Post
    Did you look into tigcc?
    Nope, but I will. It looks interesting. Thanks.

    It looked like you were trying to build an Intel hex file that you were calling it an .exe.
    I though this was saying to compile the .c into a .rel, and then link the .rel into an ".exe", and having no errors or warnings.

    I would normally expect some .a type of file output from the linker which is then later translated into a .hex file for use with programming into the calculator. But then I'm not familiar with your system.
    Well, as I mentioned, since there's no documentation on the thing, I'm stabbing in the dark. Checking or unchecking the thing has no effect. The problem is that Code::Blocks doesn't supply the full path to the compiler.
    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.

  9. #39
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    Tigcc is indeed one might IDE, but it's for Ti-89+ and I have merely a Ti-84. Tried building n' compiling, but no luck in transferring any of the files it produced. Incompatible.
    Perhaps it might work, perhaps not. I dunno.
    I don't think the Ti-89 uses the same processor, does it?
    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.

  10. #40
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    Quote Originally Posted by Elysia View Post
    I'm not under the impression that it supports additional compilers.
    It wasn't designed to compile for other platforms than Windows.
    of course it supports additional compilers. I was using Intel compiler with it
    and Lint (which is not compiler itself, but operates as if it is...)

    And destination platform depends on the compiler - not IDE
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  11. #41
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,001
    You're right. It does support other compilers.
    But then, do tell me how to integrate another compiler into it, because I don't know.
    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.

  12. #42
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Post on the codeblocks forums blasting them for their inadequacies (sp?)

  13. #43
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,264
    Post on the codeblocks forums blasting them for their inadequacies (sp?)
    Blasting the developers of an open source project (or the project itself, on its own forum) provided to you at zero price will only get you flamed, and rightly so. Asking for help, or reporting a bug/the lack of a declared feature might get you somewhere.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  14. #44
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    Quote Originally Posted by Elysia View Post
    You're right. It does support other compilers.
    But then, do tell me how to integrate another compiler into it, because I don't know.
    Intel compiler adds itself into External tools menu and modifies the project files

    PCLint is added into the External tools menu and creates some "Lint project file" based on the project


    I would start with the mak-file type project and look here http://msdn2.microsoft.com/en-us/library/f2ccy3wt.aspx

    to see If I can just replace several Envionment variables to point to the new compiler instead of Microsoft compiler, so that nmake will run these external tols instead of defualt ones...
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

Page 3 of 3 FirstFirst 123
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, 02:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 05:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 12:07 PM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM

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