Search found 28 matches

by adaniel
20 Dec 2019 12:36
Forum: mikroC PRO for ARM General
Topic: Excluding a memory area from the linker
Replies: 1
Views: 773

Re: Excluding a memory area from the linker

Forget it, I found a way
by adaniel
18 Dec 2019 17:16
Forum: mikroC PRO for ARM General
Topic: Excluding a memory area from the linker
Replies: 1
Views: 773

Excluding a memory area from the linker

Compiler: Mikroc Pro for ARM version 6.2.0
Chip: STM32F030R8

This chip has 64K flash memory. I want to use one page (1K) to store parameters. Is it possible to hide this page from the linker?
by adaniel
17 Dec 2019 23:36
Forum: ARM AI Compilers
Topic: old annoying optimizer bug
Replies: 3
Views: 2373

Re: old annoying optimizer bug

Thanks Rajkovic for your attention and fast reply. Personally, I prefer to keep the benefits of the optimizer (without setting its level to zero) at the price of getting "false" warnings. Real warnings are those for declared but unused variables. I am quite satisfied with the fact that I can suppres...
by adaniel
17 Dec 2019 12:42
Forum: ARM AI Compilers
Topic: old annoying optimizer bug
Replies: 3
Views: 2373

old annoying optimizer bug

Compiler: MikroC pro for ARM 6.2.0 The compiler keeps outputting warning messages "Variable 'n' has been eliminated by optimizer" despite the fact that 'n' is being used. In the past, declaring the variable as static avoided this false warning, but now, the static declaration fails to do that. I fou...
by adaniel
18 Jul 2019 16:31
Forum: mikroC PRO for 8051 General
Topic: Optimizer problem
Replies: 4
Views: 2154

Re: Optimizer problem

Thanks Jovana for your explanation. Without inhibiting the optimizer by setting its level to zero, I understand that this warning simply means that the compiler is able to bypass intermediary assignments and doesn't need temporary variables. So, I can remove them myself.
by adaniel
18 Jul 2019 11:19
Forum: mikroC PRO for 8051 General
Topic: Optimizer problem
Replies: 4
Views: 2154

Re: Optimizer problem

Thanks for your attention. Here is a piece of code which triggers the optimizer problem.

void alpha(void);

void main()
{
alpha();
while (1) {
}
}

void alpha()
{
char n;
long w;

w = 245000000;
n = (char) w;
TL1 = n;
}
by adaniel
17 Jul 2019 17:34
Forum: mikroC PRO for 8051 General
Topic: Optimizer problem
Replies: 4
Views: 2154

Optimizer problem

Compiler: MikroC Pro for 8051 Version: 3.6.0 Chip: C8051F350 " 'n' has been eliminated by optimizer" This is a warning which I get many times, despite the fact that the "eliminated" variables are in use. The program works well, so I guess that this is a false warning which can be ignored? Is there a...
by adaniel
02 Jul 2019 13:20
Forum: mikroC PRO for 8051 General
Topic: Interrupt context saving problem
Replies: 2
Views: 1828

Re: Interrupt context saving problem

Thanks Petar for your answer. Don't work too hard, I already have the answer for my second question: there is no overlapping problem since the first handler instruction is a LJMP.
I still have an ics problem: I would like to have full control of registers to be saved, if possible.
by adaniel
01 Jul 2019 21:26
Forum: mikroC PRO for 8051 General
Topic: Interrupt context saving problem
Replies: 2
Views: 1828

Interrupt context saving problem

Compiler mikroC PRO for 8051 version 3.6.0 Chip C8051F350 (Silabs) The ics command doesn't work. Compile the sample below and look at the generated assembly: it is the same, with or without the ics command Worse: since the code has more than 8 bytes, it overlaps the next interrupt function. Obviousl...
by adaniel
05 Mar 2019 14:09
Forum: mikroC PRO for PIC General
Topic: Linker absolute relocation of functions
Replies: 2
Views: 1084

Re: Linker absolute relocation of functions

Disappointed, but thanks for answering
by adaniel
04 Mar 2019 11:59
Forum: mikroC PRO for PIC General
Topic: Linker absolute relocation of functions
Replies: 2
Views: 1084

Linker absolute relocation of functions

Given two functions alpha() and beta(), the "org" directive relocates alpha() at an absolute address A. My question is: how to relocate beta() at the end of alpha in mikroc pro for PIC?
Thanks in advance for any help.
by adaniel
04 Mar 2019 11:52
Forum: mikroC PRO for PIC General
Topic: Code explorer window
Replies: 4
Views: 1270

Re: Code explorer window

Thanks for your answer, but it doesn't help: my question was about the simulator and not an hardware debugger. Anyway, it is not relevant anymore; I wanted to see the code to find why the boot loader which I am writing doesn't work. Meanwhile, I found it: it is a linker problem, so I am going to ope...
by adaniel
03 Mar 2019 20:00
Forum: mikroC PRO for PIC General
Topic: Code explorer window
Replies: 4
Views: 1270

Re: Code explorer window

I hope that the picture is clear enough. What I want is to see the disassembly code with ROM address.
I guess that it is not possible here. I have it with Microhip's MPLAB and MPLABX.
by adaniel
28 Feb 2019 13:46
Forum: mikroC PRO for PIC General
Topic: Code explorer window
Replies: 4
Views: 1270

Code explorer window

The code window is greyed out, is it possible to make it visible?
by adaniel
25 Feb 2019 17:17
Forum: mikroC PRO for PIC General
Topic: strcpy
Replies: 4
Views: 1553

Re: strcpy

Merci Paul pour ton aide. J'ai ete plutot choque d'apprendre que les fonctions string "n'aiment pas" les constantes. Biensur, il est facile de les re-programmer.

Go to advanced search