Jump to content
IGNORED

best recommended way to debug CC65 code in Altirra


Recommended Posts

hello all,

 

i was wondering what is the best way to set up a break code in my cc65 code and then break it in altirra while code is running.

 

i am writing the code using sublime text editor. i can produce debug info through the linker.

 

any help would be appreciated.

 

cheers

Link to comment
Share on other sites

I used the things in that post for many months now, but is still very un convenient.....

 

ok, will have to wait till something good will come up someday

i can dream :)

 

A cold comfort, but compared to the tools you've had while the A8 was commercially successful, this is complaining on a very high level.

 

I guess your dream needs a long sleep. ;)

Link to comment
Share on other sites

That certainly works, but I'm not sure you can see the C source lines using CC65 compiler. Maybe that's been solved since last I tried. Yaron, my advice is to just go ahead and put in the effort to learn to code in assembler. C is easier, of course, but my experience has been that if you're doing any serious game programming you'll find you need to drop into assembler a lot anyway. I have done low-level stuff in CC65 like mouse drivers and communications, but the extra cost in size and speed is really not worth it in the end. When going for speed, you'll get to the point where you're pretty much using C as just a macro assembler anyway and at that point you might as well just write it in assembler. For a long time I switched to using C as just a wrapper around a bunch of assembler, because I wasn't sure how get the executable format directly from assembler, but there's tons of reading material and I eventually figured it out.

Link to comment
Share on other sites

you can choose options in compile time to add debug info.

Then once you break you can review the source code and step into and step out the CC65 functions.

it is ok, but not like visual studio debugger for example.....

 

i know assembly. just don't like it much. if there is a high level language that performs well, why not use it.

tough parts can be wrapped with asm.....

Link to comment
Share on other sites

Often when generating debug versions of code it is better to also limit the optimizations but I don't really know if that applies to CC65 & Altirra

 

well, in my tests i kept the optimization command line options and it was working partially, meaning, not all the cc65 code was debugable.....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...