Thanks Ben,
your answer tipped me off to an easy solution.
I'm just wrapping relevant sections in
#pragma warn_a5_access on
no-global code here
#pragma warn_a5_access reset
which (if I understand correctly) should warn me whenever there is a
problem.
I was surprised to find that
Char
ok - a followup.
having found that:
{
const UInt32 bitRate[15] = { 0, 32000, 4, 48000, 56000, 64000,
8, 96000, 112000, 128000, 16, 192000, 224000, 256000, 32 };
return bitRate[bits];
}
Is triggering an A5 warning, I need to do the same job without globals
(I have turned on
On 10/25/07, Rob [EMAIL PROTECTED] wrote:
I was surprised to find that
ChartimeString[timeStringLength]=;
was being treated as a global...
that is because you have effectively allocated a buffer of length
timeStringLength with NULLs. if you are to use it, it is natural
that you are going
On 10/25/07, Rob [EMAIL PROTECTED] wrote:
ok - a followup.
having found that:
{
const UInt32 bitRate[15] = { 0, 32000, 4, 48000, 56000, 64000,
8, 96000, 112000, 128000, 16, 192000, 224000, 256000, 32 };
return bitRate[bits];
}
Is triggering an A5 warning, I need to do
re:
can anyone suggest an efficient way to do this that won't end up using
the
A5 register?
Aaron wrote:
a) global const
put it outside of the function, not as a variable inside.
b) use a resource
resources are simply memory pointers when locked. not that slow at all.
what do you
On 10/25/07, Aaron Ardiri [EMAIL PROTECTED] wrote:
Is triggering an A5 warning, I need to do the same job without globals
(I have turned on PC-Relative strings and PC-Relative constants in the
project options, but they don't seem to fix this)
can anyone suggest an efficient way to do
On Thu, 25 Oct 2007 18:16:16 +0100, Ben Combee [EMAIL PROTECTED]
wrote:
You can also try making it static const inside the function to do the
same thing... right now, the function is setting up an array on the
stack then copying from global memory on each call to the function.
...tried that
There are many straight forward ways to 'force' code space data.
Here are two simple examples.
The first example uses an assembly routine to make a smart data array.
The second example is simply data placed in code space, but used directly.
asm UInt32 GetBitRate(UInt16 bits)
{
move.w
I am writing an application for my Treo 700p to
download a PRC or PDB file from an HTTP web server and
save it to my device, and am having some trouble
getting ExgDBRead to work correctly.
Once I've confirmed that the user wishes to download
the file, I execute:
LocalID db_id;
Ton van Overbeek wrote:
On 2007-10-22, David Laganiere [EMAIL PROTECTED] wrote:
Hi!
I'm using this code:
http://rafb.net/p/iepjfg82.html
I'm only using the debugger to go through the code right now and I'm
using a Tungsten E2 simulator. The way the code is right now, the call
to
Off the top of my head...
1. What are the values passed at *pSize? You don't check the return
value of MemPtrNew(), so it could be failing. And, since it is not
apparent that you ever free the allocated memory, it's possible you
are running out of memory.
2. Where does pData point? I assume you
11 matches
Mail list logo