Home | News | Downloads | Projects | Articles | Awards | Forums | Chat | Guestbook | About | Arcade
DealsFor.me - The best sales, coupons, and discounts for you



Forum Topics Replies Last Post Info
Older topics
Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode).
1126 15694 9 Apr, 2006, 11:06
In: Last Post[GAME]Learn how to count to...
By: DJ Omnimaga
 

Pages: (10) [1] 2 3 ... Last » ( Go to first unread post ) post

 HACC, C compiler for z80 processors
Halifax
Posted: 21 Jan, 2007, 1:50


Game and Utility programmer


Group: Coders Of Tomorrow
Posts: 1345
Member No.: 104
Joined: 10 Jul, 2006



Well after polishing up my C++ skills I figured as a little side project I would work on this. I have already made a command-line interpreter that finds out what file to read from and what file to write to. I have also got a basic parser setup that finds all C functions in a given line I just need to setup how it compiles to assembly and dynamic memory allocation. Is there anything you guys would like to see in this?

This post has been edited by Halifax on 31 Aug, 2007, 19:26


--------------------
MapEd: 50%
ListCompress: 100%
CutSEd: 0%
Top
CureDesu
Posted: 21 Jan, 2007, 8:50


Ultimate Member


Group: Members
Posts: 186
Member No.: 103
Joined: 9 Jul, 2006



If you do this, you will be my hero... Seriously, do it! shocked2.gif


--------------------
[URL=http://userbars.org][IMG]http://img367.imageshack.us/img367/2719/asmvu0.png[/IMG][/URL]
[URL=http://www.curedesu.wordpress.com]Boku no "blog" da![/URL]
Top
trevmeister66
Posted: 21 Jan, 2007, 9:20


Post whore


Group: Members
Posts: 532
Member No.: 290
Joined: 8 Jan, 2007



QUOTE
If you do this, you will be my hero... Seriously, do it!

evillaugh.gif evillaugh.gif evillaugh.gif

What he said.


--------------------
~~~~~~~Project Status~~~~~~~
Age of War > .1% < Retransfering Sprites
Baseball > 2% < Menu's

Learning ASM > 10% < Started first game, and have no idea what I'm doing confused.gif


(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Top
Liazon
Posted: 21 Jan, 2007, 9:42


Staff


Group: Coders Of Tomorrow
Posts: 1491
Member No.: 24
Joined: 11 Apr, 2006



Definitely. This realm still needs lots of work seeing as few to none of the existing C z80 compilers have displaced the need for ASM programmers.


--------------------
Projects: In need of sprites...
Top
xlibman
Posted: 21 Jan, 2007, 11:07


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



wow amazing, something like TIGCC (of course restricted to 83+ limitations) would rule the world of z80 calcs!


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
Halifax
Posted: 21 Jan, 2007, 15:01


Game and Utility programmer


Group: Coders Of Tomorrow
Posts: 1345
Member No.: 104
Joined: 10 Jul, 2006



Yes thank you guys but I don't exactly know how TIGCC compiles and stuff but I will make this so that it compiles into Assembly code and then it will compile that code with TASM and Devpac83 so all you need to do is write the C code and compile.

NOTE: I don't know if I will be able to use typedef but also another note is that it will have inline assembly also so you can setup ASM routines to work with zC80. I am currently worknig on dynamic allocation with the 'int' function and once that is done making the rest should be easy riding smile.gif

I don't know if I will be able to include typedef and some other complicated C stuff like union and structure pointing sad.gif sorry


--------------------
MapEd: 50%
ListCompress: 100%
CutSEd: 0%
Top
Spellshaper
Posted: 21 Jan, 2007, 17:48


rectangular puddle


Group: Coders Of Tomorrow
Posts: 1996
Member No.: 5
Joined: 10 Apr, 2006



That woud be neat-o.

Time to polish my C++ skills... I think I lost them over the years...


--------------------
The tooth fairy teaches children that they can sell body parts for money.

All power corrupts, but I need the electricity!

I gave sanity a shot... not my fault it failed >_<!
Top
Liazon
Posted: 21 Jan, 2007, 19:41


Staff


Group: Coders Of Tomorrow
Posts: 1491
Member No.: 24
Joined: 11 Apr, 2006



TIGCC uses GCC as its base for compiling to 68k ASM and then creating binaries.

Most of the existing C compilers for z80 ASM will try to compile into an ASM file (not yet assembled) and then try to optimize the ASM code before creating working binaries. This is a good idea because trying to use an 8-bit version of GCC (if one exists) probably wouldn't generate very optimized code.

At the very least, I think people would probably want to see basic if, else, while, for, switch/case, etc. Things like malloc might not be worth the trouble since it's not very feasible on z80. Most variable use in ASM is either static or for SMC use. malloc is useable on 68k calcs because their AMS software already has a system to handle dynamic memory allocation. the z80 calc OS do not afaik.


--------------------
Projects: In need of sprites...
Top
Halifax
Posted: 23 Jan, 2007, 17:44


Game and Utility programmer


Group: Coders Of Tomorrow
Posts: 1345
Member No.: 104
Joined: 10 Jul, 2006



What I have learned:

This information comes straight from Kevin Kofler. You would only need to write a backend for the GCC compiler instead of a frontend. This is where z88dk failed by only trying to write a frontend for the GCC compiler. Also to compile the bins he has recommended using Binutils. I would want to use 'as' and then 'ld' or 'ld-tigcc'. Also I could port the libraries from TIGCC to z80-GCC with some work for the z80 calcs. Now I have a proposition.

Proposition:

I am looking for skilled C/C++ programmers that are willing to work on this porject with a group. TO keep this project clean, simple, and effcient there will be coding standards, a detailed dynamic list for bug reports and a todo list. This will help with interfacing with different programmers. Now I am only looking for a maximum of 9 programmers and a minimum of 3 programmers including me. If you want to tryout email me at EmberstoAshes243@hotmail.com.


--------------------
MapEd: 50%
ListCompress: 100%
CutSEd: 0%
Top
elfprince13
Posted: 23 Jan, 2007, 17:58


Post whore


Group: Members
Posts: 628
Member No.: 47
Joined: 21 Apr, 2006



you might want to talk to me on AIM at some point, I can help with this.

credentials:
experience with 20 programming languages (including z80 asm and C)
working knowledge of memory management, Context Free Grammars, and how compilers work.


--------------------
[URL=http://rancidmoose.unitedti.org/forum]StickFigure Graphic Productions[/URL] || [URL=http://rancidmoose.unitedti.org/zeldaforum.php]Legend of Zelda :: Online Experience[/URL]
Top
Halifax
Posted: 23 Jan, 2007, 18:13


Game and Utility programmer


Group: Coders Of Tomorrow
Posts: 1345
Member No.: 104
Joined: 10 Jul, 2006



what is your AIM s/n im on there now


--------------------
MapEd: 50%
ListCompress: 100%
CutSEd: 0%
Top
JincS
Posted: 23 Jan, 2007, 23:19


Ultimate Member


Group: Members
Posts: 184
Member No.: 91
Joined: 15 Jun, 2006



I might be able to help:

4 Years C/C++ experience
Intel x86 asm (no z80 asm)
HTML/HP/blady-blah...


--------------------
[IMG]http://i5.photobucket.com/albums/y195/JincS/logo.png[/IMG]
©2004-2007 JincS, Inc. All Rights Reserved.
Top
Halifax
Posted: 24 Jan, 2007, 13:24


Game and Utility programmer


Group: Coders Of Tomorrow
Posts: 1345
Member No.: 104
Joined: 10 Jul, 2006



JincS do you know how compilers work and about writing backends and binutils??


--------------------
MapEd: 50%
ListCompress: 100%
CutSEd: 0%
Top
JincS
Posted: 24 Jan, 2007, 14:12


Ultimate Member


Group: Members
Posts: 184
Member No.: 91
Joined: 15 Jun, 2006



Som e. I'm working on a compiler/interpreter for a scripting language I'm developing. But I'm working on learning more.


--------------------
[IMG]http://i5.photobucket.com/albums/y195/JincS/logo.png[/IMG]
©2004-2007 JincS, Inc. All Rights Reserved.
Top
bfr
Posted: 24 Jan, 2007, 14:41


Post whore


Group: Coders Of Tomorrow
Posts: 872
Member No.: 31
Joined: 12 Apr, 2006



Yes, you talked to Kevin Kofler like I suggested! smile.gif

Also, remember my other suggestions at Psugen....

QUOTE

Use Flex for the lexer, Bison for the parser and GCC for the optimization and code generation. You don't have to "re-invent" the wheel. You should really talk to Kevin Kofler about this if you need any help; he's really good with this type of stuff (especially considering that he's the lead maintainer of TIGCC).

I'll be glad to help you. 

Oh, and if you plan on making a cross-platform IDE for it in C++ (and don't mind making it open-source), you should probably use Qt for a GUI toolkit. If you plan on making it Windows-only (), then I guess you could use Windows-only routines.....


This will definitely be a revolutionary project when it is finished. google.gif

I don't know much about programming "backends", but I suggest searching Google, not to be rude. smile.gif I searched for tutorials to learn most of the stuff I know, and if I had trouble with something, after searching for a solution, I would ask people.

I would help you with programming "backends", but like I said, I don't know much about programming "backends", although I plan to do some research this weekend on it.

I could help with the other stuff, though.


--------------------
[URL=http://bfr.tifreakware.net]My Website[/URL] - [URL=http://bfr.18.forumer.com]My Forums[/URL] - [URL=http://bfr.tifreakware.net/badips.php]Submit IP Addresses of Spambots and Troublemakers[/URL]

2B || !2B
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
DealsFor.me - The best sales, coupons, and discounts for you

Topic OptionsPages: (10) [1] 2 3 ... Last » post





TI-Freakware's TI Ring
TI-Freakware's TI Ring
[ Join Now | Ring Hub | Random | << Prev | Next >> ]

Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.3968 seconds | Archive

Skin by xlibman and Jc
All programs and games are property of their respective owners.