Re: Strange problem with multi-section

2003-08-21 Thread Khaki Wizard
Actually it is the output of obj-res. I only put
section attribute at the function prototypes.

Could you tell me how to figure out where is 
something like .data+0x1998. I can't find it in the
objdump output. Or I may use some options?

Thanks,
--- John Marshall [EMAIL PROTECTED]
wrote:
 On Wed, 20 Aug 2003 11:45:44 -0700 (PDT), Khaki
 Wizard wrote:
  When I multi-sectioned my C++ program, g++ has
 some warnings like:
  g2palm:.data+0x1998: warning: reloc relative to
  strange section 'SECT2'
 
 These are messages from build-prc, not
 m68k-palmos-g++.
 
 Congratulations; this diagnostic is not easy to
 produce.  The most likely
 way to get it is via putting a section attribute on
 something that is not
 code.  (Because the name of the technique is
 multiple *code* sections,
 it's not easy to imagine why anyone might do that
 :-).)  You probably also
 have to initialise some other global variable to
 point to that something.
 
 Where do your SECT1 and SECT2 section
 annotations appear?  Only on
 functions, one hopes (and conceivably on constant
 data, but here there
 be dragons).
 
 You can track this down even more quickly by using
 objdump or nm to find
 out which of your global variables is at
 .data+0x1998, and looking at its
 initialiser.
 
 John
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


.bss full?

2003-08-21 Thread Khaki Wizard
Hi, 

I'm using multi-section code. When I'm adding more
code into the project, ld tells something like:

/usr/m68k-palmos/bin/ld: region datares is full
(xx section .bss)

Now I have 3 sections (besides the .text .data
.bss). 

Why is .bss full? Is it because there is too many
reloc entries. As I know, they should be in .data
section.

By the way, I didn't add any global data, just some
functions.

Thanks,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: .bss full?

2003-08-21 Thread Khaki Wizard
By the way, is it possible to move global constant
data into sections other than .bss?

Thanks,
--- Khaki Wizard [EMAIL PROTECTED] wrote:
 Hi, 
 
 I'm using multi-section code. When I'm adding more
 code into the project, ld tells something like:
 
 /usr/m68k-palmos/bin/ld: region datares is full
 (xx section .bss)
 
 Now I have 3 sections (besides the .text .data
 .bss). 
 
 Why is .bss full? Is it because there is too many
 reloc entries. As I know, they should be in .data
 section.
 
 By the way, I didn't add any global data, just some
 functions.
 
 Thanks,
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Strange problem with multi-section

2003-08-20 Thread Khaki Wizard
Hi,

When I multi-sectioned my C++ program, g++ has some
warnings like:
g2palm:.data+0x1998: warning: reloc relative to
strange section 'SECT2'
g2palm:.data+0x19d6: warning: reloc relative to
strange section 'SECT2'
g2palm:.data+0x19fc: warning: reloc relative to
strange section 'SECT1'
g2palm:.data+0x1a5c: warning: reloc relative to
strange section 'SECT1'

And when I ran it on Palm simulator, all resources,
like forms, menus, labels disappeared, although it
seems to be still running (I got trace output).

Anybody knows the problem?

By the way, can I put virtual functions into different
sections? I mean, the virtual functions in the
inherited class.

Thanks,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Multi section for C++?

2003-08-19 Thread Khaki Wizard
Hi, 

Due to the 64K code limit, we have to use
multi-section code for Palm program. PRC-tool provides
sample code for multi-section code. But it is only
about C. How to do that for C++?
Can I use the __attribute__ ((section (bob)))
stuff for class? Or I have to flag every methods with
it?

Thanks a lot

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Multi section for C++?

2003-08-19 Thread Khaki Wizard
Hi, Thanks for your reply.

The mentioned C sample is in the PRC-tools sample
code.
You can download it from here:
http://prdownloads.sourceforge.net/prc-tools/prc-tools-samples.zip?download

Good luck.

--- Régis Daniel de Oliveira [EMAIL PROTECTED]
wrote:
 Hy!
 
 Here is an example of how make multi segmented
 app using C++:
 http://www.falch.net/Articles/?art=151
 http://www.falch.net/Articles?art=334
 http://www.falch.net/Articles?art=171
 
 I'm looking for an example of how to do this same
 thing on C, and you said
 that you get one.
 
 Can you send-me this example?
 
 Thanks!
 
 Khaki Wizard [EMAIL PROTECTED] escreveu na
 mensagem
 news:[EMAIL PROTECTED]
 
  Hi,
 
  Due to the 64K code limit, we have to use
  multi-section code for Palm program. PRC-tool
 provides
  sample code for multi-section code. But it is only
  about C. How to do that for C++?
  Can I use the __attribute__ ((section (bob)))
  stuff for class? Or I have to flag every methods
 with
  it?
 
  Thanks a lot
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
 
 
 
 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Khaki Wizard
Actually I just want to create a blank bitmap for
double buffer purpose, not from a resource. The pixels
are generated programatically. I looked at the Palm
API reference and it seems that BmpCreate can create a
bitmap larger than 64K. Anybody can verify that?

Thanks
--- José dos Santos Machado [EMAIL PROTECTED]
wrote:
 Khaki Wizard escreveu:
  Hi, all: 
  
  Is it possible to use BmpCreate() to create a
 bitmap
  larger than 64KB, say 640x480 8bpp, and use it to
  build an offscreen window for double-buffer paint
  purpose?
 
 Actually you cannot create any resource larger than
 64kb on PalmOS, unless 
 you do it on the memory card or split in several 64k
 blocks. 
 
 
  Or I have to draw such large dynamic BMP with
  WinDrawPixel() directly on the screen?
 
 Urgh, that would be very ugly... You can split your
 resource (image or 
 anything you want) and make blocks to render on the
 screen. 
 
 Aaron, that's with you. :) 
 
  -- J. Machado
  -- [EMAIL PROTECTED] 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Khaki Wizard
Nice finding.

I also searched the old archives and somebody suggests
use BmpCreate to get bitmap memory as malloc, which
can be larger than 64KB.

All kinds of tricks!

--- José dos Santos Machado [EMAIL PROTECTED]
wrote:
 Ben Combee escreveu:
  Is it possible to use BmpCreate() to create a
 bitmap
  larger than 64KB, say 640x480 8bpp, and use it to
  build an offscreen window for double-buffer paint
  purpose?
 
 Hey guys, look what I found: 
 
 http://www.cliedeveloper.com/spotlight/kinoma1.html 
 
 IMHO it's a good tutorial on working with semaphores
 and blocks larger than 
 64k... 
 
 Hmm... I guess I shouldn't discover that
 Hehehehe... 
 
 It seems like my Zire71 will start to hang with my
 programs... Hehehehe 
 
  -- J. Machado
  -- [EMAIL PROTECTED] 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Khaki Wizard
Are you using FtrPtrNew to allocate storage memory to
store the image data? I'm wondering whether it is
efficient enough for fast rendering, if I have
frequent update to the bitmap.

So what is better?
1. Use BmpCreate to allocate a bitmap  64Kb for
double buffer. I think performance is nice, but...
2. Use FtrPtrNew to allocate storage memory, the
performance is a problem.

Any suggestions? 

For my app, it is a large bitmap with frequent pixel
update (not very frequent, like per several seconds).

Thanks,
--- Aaron Ardiri [EMAIL PROTECTED] wrote:
  Aaron, that's with you. :) 
 
 heh.. i actually have code that can smooth scroll
 any size bitmap 
 (limited to the size of the data storage area, not
 heap *g*) -- 
 ie: i have had 2048x2048 8bpp image scrolling very
 smoothly.
 
 its all about graphics programming primitives. loads
 of books on
 the subject, i'd suggest reading some :)
 
 ---
 Aaron Ardiri   
 [EMAIL PROTECTED]
 CEO - CTO  
 +46 70 656 1143
 Mobile Wizardry 
 http://www.mobilewizardry.com/
 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Khaki Wizard
Hi, all:

Is it possible to use BmpCreate() to create a bitmap
larger than 64KB, say 640x480 8bpp, and use it to
build an offscreen window for double-buffer paint
purpose?

Or I have to draw such large dynamic BMP with
WinDrawPixel() directly on the screen?

Thanks,


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Http connection library on Palm?

2003-08-14 Thread Khaki Wizard
Hi, 

I need to do some HTTP connection stuff on Palm but 
it seems that only Palm VII support INet library.

I'm wondering if there is an alternative HTTP library
for all the Palm platforms built on Net library.

Thanks,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


NetLibClose problem

2003-08-12 Thread Khaki Wizard
Hi,

I'm using Net library to connect to an HTTP server.
But when I call NetLibClose, it returns 0xF009, which
is not an error code for Net library.

Anyboday knows what is it?

Thanks,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


gdb with Simulator

2003-08-04 Thread Khaki Wizard
Hi, 

It seems that the gdb in PRC-tools does not work with
the Palm OS 5 Simulator.
Anybody knows whether it should work or not?
SuggestionS?

Thanks,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: PilRC in CW9

2003-08-01 Thread Khaki Wizard
I think the last question in
http://www.metrowerks.com/pdf/PalmFAQ.pdf

should be the answer to your question.

wy
--- Engi [EMAIL PROTECTED] wrote:
 Hi,
 
 Is it possible to use .rcp files in CW9 ?
 If yes, how to tell to CW9 to use pilRC to compile
 this files ?
 
 Engi
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


symbol file for PalmDebugger

2003-07-31 Thread Khaki Wizard
Anybody can tell me how to generate the .sym file
for PalmDebugger?
I can't find any explanation.
 
Thanks,


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/