Code generated by executing itself (for example can have the JIT compiler?)

BONE of the Playbook, like Apple's iOS, prevents an application from self-production of his own code to execute?

For example, I can't launch V8 javascript engine of Google on Apple iOS because the operating system will not allow the application to have a page of memory that is executable and accessible writing. (in order to avoid the trojan style dodgy apps)

So, I just wanted to know if there are similar protections on the playbook, before wasting too much time!

Finally, I'd like to port V8 for the playbook - the possibility of including the code Javascript in a native app is very useful!

see you soon

Well, I solved my image-memory - the call of the function when you try to call strlen with inside of foo()...

The compiler generated instructions relative branch (short) for my call to strlen.

There are several ways to work around this problem:

1. use - 25mdelongueur-calls during the compilation, even though it may turn on long calls unnecessarily elsewhere, when all I really wanted was long calls inside my function foo().

2. use #pragma long_call / #pragma long_call_off or __attribute__ ((long_call)) on the functions that you want to generate a long advertisement.  You must also __attribute__ ((weak)), if you declare the function in the same file as it is called for.  for example:

__attribute__((long_call,weak)) int bar(const char *str) {         return strlen(str); }

 int foo(char *str) {
    return bar(str);  // this will generate a long-call to bar() which wraps strlen() for me. }

* Note that the call to strlen in bar() will not be a long call, but given that the wrapper bar() is not running of the bunch, it's okay.

3. load the address appeal explicit function within the function foo():

int foo(char *str) {
    size_t (*strlenptr)(const char*) = &strlen;
    return strlenptr(str);
}

See you soon,.

Sean

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Office jet pro 8600: vertical lines on photos

    for many years, I printed excellent photos, what impression one thin vertical black line have published recently in several places on the photo.  I cleaned the heads and still get the same results.  How can I go back to a photo impression?

  • When I print from a mobile phone, how to cover the entire page with the selected image I want to print?

    I would really appriciate help. I have the printer and when I print from a mobile phone image is very limited and barely covers half of my page. How can I make the printed image or the other format of full paper, or any size I want? Thanks for any he

  • Palm Hotsync blocks Windows XP - Help!

    On my computer, Palm Hotsync crashes Windows XP.  It not always plant.  I think about half the time it crashes. Symptoms: I get a BSOD, with one of the following messages BAD_POOL_CALLER DRIVER_IRQL_NOT_LESS_OR_EQUAL Crash report Windows identifies t

  • Latitude C640 with 1470 mini pci wifi has very low signal strength

    I just installed 1470 broadcom mini pci card with the 4.10.40.0 (from decompression R115321.exe) on a Dell Latitude C640 driver version. The card sees the network and connects, but I must be withinn 5 feet from the router, and even in this case the s

  • main values ignored on illustrator

    I am doing a logo with the text wrapped around a circle. I have reversed the background text to read from left to right and I try to adjust the tip upward so that it is aligned with the police on the top.  However, when I go into my control panel of