A PICI8F4620 has the following specifications RAM 3942 x 8 R


A PICI8F4620 has the following specifications RAM: 3942 x 8 ROM: 32k x 16 Stack: 32 x 16 How many lines of assembler can a program have until you run out of room? How many lines of C can a program have until you run out of room? What is the largest N times N array of integers this processor can store? How many times can a subroutine call a subroutine which calls a subroutine until you run out space?

Solution

1a] For assembly it is clear - PIC18 has an instruction set composed of 16 and 32bit long instructions. So 1Kb can contain at 1024/2=512 instructions at most.

1b] As for C - it can be one line, or it can be a thousand. Depending on the constructs and optimization.

 A PICI8F4620 has the following specifications RAM: 3942 x 8 ROM: 32k x 16 Stack: 32 x 16 How many lines of assembler can a program have until you run out of ro

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site