Article View: comp.dsp
Article #133296002 Question
From: Tony Denault
Date: Thu, 15 Oct 1992 00:35
Date: Thu, 15 Oct 1992 00:35
26 lines
1715 bytes
1715 bytes
Hello, I'm working on a programming project using the 96002 DSP. Currently I'm using the Motorola Assembler. I have a programming question and I would appreciated any comments/answers. The system stack register seem very limited due to its size restriction of 15 RAM locations. According to the manual it can handle up to 15 long int, 7 DO loops or 15 JSR's or a combinations of these. This would make it seem rather easy to write a program with overflows the stack. I wrote a function which has 4 nested DO loop. I am very careful when to call it. It seem to me if I nest subroutine call and receive an interrupt, I could get in trouble very easily. I don't use a C compiler. But I'm curious about how they handle subroutines calls. Do they use a separate stack for parameters and local storage? Is the Stack Register used for subroutine calls? Are nesting of subroutines calls and used of hardware DO loop used sparingly? Thanks in advance Tony Denault -- /------------------------------------------------------------------------\ | Tony Denault, Institute for Astronomy, | denault@uhifa.ifa.hawaii.edu | | 2680 Woodlawn Drive, Honolulu, HI 96789 | (808) 956-8101 | \------------------------------------------------------------------------/
Technical Details
Message-ID:
<1992Oct15.003553.14620@news.Hawaii.Edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!news.hawaii.edu!galileo!denaultShow Full Headers
Complete Article Headers
Newsgroups: comp.dsp Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!news.hawaii.edu!galileo!denault From: denault@galileo.ifa.hawaii.edu (Tony Denault) Subject: 96002 Question Message-ID: <1992Oct15.003553.14620@news.Hawaii.Edu> Sender: root@news.Hawaii.Edu (News Service) Nntp-Posting-Host: galileo.ifa.hawaii.edu Organization: Institute for Astronomy, Hawaii Date: Thu, 15 Oct 1992 00:35:53 GMT Lines: 26