New Micros, Inc  

Go Back   New Micros, Inc > IsoMax™ - ServoPod™ - IsoPod™ - MinPod™ - PlugaPod™ - TiniPod™ > Small C for IsoPod™ - ServoPod™ - MinPod™ - PlugaPod™ - TniPod™ -NMIN-0803-MINI/H3/H6
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 20 votes, 5.00 average. Display Modes
  #1  
Old 11-15-02, 09:36 PM
RMDumse RMDumse is offline
Moderator
 
Posts: 1,406
Exclamation

SmallC now available for IsoPod(TM) at:

http://home.attbi.com/~petegray/dsp-1-0.zip

courtesy of a cooperative effort between New Micros, Inc. and programmer Peter Gray!

Small C is based on Jim Hendrix Small C and in the spirit of Jim's offering, remains a public domain offering. (The assembler provided is however not public domain.)

Last edited by RMDumse : 11-16-02 at 07:42 AM.
Reply With Quote
  #2  
Old 11-30-02, 01:34 PM
petegray petegray is offline
Associate Member
 
Location: MA, USA
Posts: 104
Send a message via ICQ to petegray Send a message via AIM to petegray
Enhancement - Interrupts

Added preliminary support for interrupts. Small C code would look like this:

interrupt myintr1 ()
{
/* C code goes here */
}

The latest compiler/assembler executables, and additional documentation are available from

http://home.attbi.com/~petegray
Reply With Quote
  #3  
Old 12-15-02, 08:04 AM
petegray petegray is offline
Associate Member
 
Location: MA, USA
Posts: 104
Send a message via ICQ to petegray Send a message via AIM to petegray
Exclamation Upgrade to Assembler

There's a new version of the Assembler available here:-

http://home.attbi.com/~petegray/sa568.exe

This fixes a bug causing incorrect hex generation in the 'support' routines for Small C programs using literals.

-Pete.
Reply With Quote
  #4  
Old 01-12-03, 11:20 PM
petegray petegray is offline
Associate Member
 
Location: MA, USA
Posts: 104
Send a message via ICQ to petegray Send a message via AIM to petegray
Thumbs up

Version 1.4 of the Small C cross-compiler is now available for download (DOS box and Linux hosts) from here...

http://home.attbi.com/~petegray/

...which fixes an optimization bug.

Regards,
-Pete.
Reply With Quote
  #5  
Old 04-02-03, 08:34 PM
petegray petegray is offline
Associate Member
 
Location: MA, USA
Posts: 104
Send a message via ICQ to petegray Send a message via AIM to petegray
Thumbs up Small C site relocated

The Small C site has moved, and is now available here:-

http://petegray.newmicros.com

Regards,
-Pete.
Reply With Quote
  #6  
Old 02-25-06, 02:42 PM
fjscipione fjscipione is offline
Registered User
 
Posts: 1
Bug fix for do...while loops

The code for dodo() in CC1.C is incorrect. The result is that a 'continue;' statement inside a do...while loop (wrongly) skips the loop test. The correct source for dodo() is as follows:

Code:
#ifndef WQSIZ #define WQSIZ 3 #endif dodo() { int wq[WQSIZ], t /* FJS+++ need 3rd label for correct code gen */; addwhile(wq); /* gen(LABn, wq[WQLOOP]); */ /* FJS--- wrong */ gen(LABn, t = getlabel()); /* FJS+++ post-test loop target */ statement(); need("while"); gen(LABn, wq[WQLOOP]); /* FJS+++ correct pre-test 'continue' target */ test(wq[WQEXIT], YES); gen(JMPn, t /* wq[WQLOOP] */ /* FJS*** */); gen(LABn, wq[WQEXIT]); /* post-loop 'break' target. */ delwhile (); ns(); }

Last edited by fjscipione : 02-25-06 at 02:48 PM. Reason: Normalize comments in code
Reply With Quote
  #7  
Old 11-07-07, 12:56 AM
sreeja sreeja is offline
Registered User
 
Posts: 5
What is the advantage of using this
Reply With Quote
  #8  
Old 11-07-07, 05:05 PM
nmicom nmicom is offline
Administrator
 
Posts: 12
If you mean what is the advantage of using Small C, the answer is you can get this development compiler for no cost to you. Then you can work in a C-like environment.

Otherwise you can try to buy a C development package and spend hundreds of dollars for slightly better features. Maybe those features are critical. Likely for most, they are not.
Reply With Quote
  #9  
Old 01-31-08, 01:58 PM
brian brian is offline
Registered User
 
Posts: 25
I assume that if I go down this path of working in Small C, I end up flashing over the top of IsoMax and MaxForth and install a loader. Is there a way to restore IsoMax and MaxForth afterward? That is, is there an image for these available that can be flashed back on? Does NMI make this available? I'd be kind of surprised if NMI directly supports this.
Reply With Quote
  #10  
Old 01-31-08, 02:28 PM
nmitech nmitech is offline
Moderator
 
Location: Big D, Texas
Posts: 1,285
Quote:
I assume that if I go down this path of working in Small C, I end up flashing over the top of IsoMax and MaxForth and install a loader.

Correct!
Quote:
Is there a way to restore IsoMax and MaxForth afterward?

Yes!

Quote:
That is, is there an image for these available that can be flashed back on? Does NMI make this available?

Yes. The information to get a copy of IsoMax SRecord is available online. here is the direct link,
http://www.newmicros.com/cgi-bin/st...IsoMax%5BPod%5D

To reflash your 'Pod with IsoMax Kernel, or Serial Boot Loader, you also need a Jtag cable. You can find the Jtag cable on the previous link as well.
Reply With Quote
  #11  
Old 01-31-08, 06:41 PM
brian brian is offline
Registered User
 
Posts: 25
Will the jtag cable and software work with a Keyspan USB to parallel port adapter?
Reply With Quote
  #12  
Old 02-01-08, 10:07 AM
nmitech nmitech is offline
Moderator
 
Location: Big D, Texas
Posts: 1,285
I don't have a Keyspan USB to parallel port adapter to try it out yet. I will keep you posted when i have access to this adapter. If anyone who already used this adapter with the Jtag, please let us know. Thanks!
Reply With Quote
  #13  
Old 02-01-08, 12:34 PM
brian brian is offline
Registered User
 
Posts: 25
Ok. I ordered the cable anyway. I have an old PC with a real Parallel port, just in case. The Keyspan approach would be more convenient though. I'll post the results when I get the cable. My last order took more than a week, so won't know until then.

So if I need a copy of the IsoMax 'SRecord' I see I need to fax in a license agreement and send in a fee. Once I send in the fax, can I just pay the fee online and download the image? That is, I don't have to wait for anything to ship, or process via regular mail? I'm figuring I can wait until I've got everything setup and verify I have the flashing JTAG process working first.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is On
Forum Jump



All times are GMT -5. The time now is 09:11 PM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.