Jump to content
Sign in to follow this  

C Vs Assembly, Not Too Bad

Recommended Posts

I have a small asm program for a 12F675. It's a light sequencer for those that must know ;-)


The C version is completely unoptimised, it uses a big ol switch statement that is easy to read.


The C version was MUCH easier to write only a few bytes bigger so it will be to version I keep.



Anyway, the asm (MPASM) version is;

Data Memory, 11 bytes

Program memory 231 bytes



The sourceboost version;


Memory Usage Report


RAM available:64 bytes, used:32 bytes (50.0%), free:32 bytes (50.0%),

Heap size:32 bytes, Heap max single alloc:31 bytes

ROM available:1024 words, used:277 words (27.1%), free:747 words (72.9%)



Corvette Engineering

Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. 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.

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.

Sign in to follow this  

  • Create New...