Main Procedure at Location -1

General discussion on mikroBasic.
Post Reply
Author
Message
anton
Posts: 807
Joined: 23 Sep 2004 09:16
Location: South-Africa
Contact:

Main Procedure at Location -1

#1 Post by anton » 14 Dec 2004 19:58

Why does the compiler sometimes create more than one main procedure
and when I look in my statitistics as locations, they start at -1??

Sometimes when i create a table : array[120] of byte, it also
starts at -1 and the program then doesn't want to work.

Thank You.
PS v2.1.6 using a PIC 16F628A

:oops: Sorry, this post should have been under mikroPASCAL

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: Main Procedure at Location -1

#2 Post by rajkovic » 09 Jan 2005 12:11

anton wrote:Why does the compiler sometimes create more than one main procedure
and when I look in my statitistics as locations, they start at -1??
Sometimes when i create a table : array[120] of byte, it also
starts at -1 and the program then doesn't want to work.
This is linkage problem, please send us code when this happends. We are working on new linker engine and we would like to try it with this kind of code.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Main Procedure at Location -1

#3 Post by zristic » 09 Jan 2005 12:31

It may happen that your main procedure is too large to fit in one memory page.

Yes, the code would help us a lot.

Post Reply

Return to “mikroBasic General”