Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2006

    C++ and Assembly


    Does anyone has any links (or examples) where I could find some examples and documentation about Symbian ASM programming.

    I already have a pretty good idea about it and know ARM assembly, but I can't find any sites that could show me the principles of Symbian ASM coding.

    I was just thinking same as x86, but in Symbian ARM ASM.


  2. #2
    Regular Contributor
    Join Date
    Mar 2003

    Re: C++ and Assembly

    IIRC in-line assembler is only possible in Symbian OS 9.x if you have the ARMv5 compiler, not GCCE.
    I'd imagine ARM have some examples.
    Symsource Ltd.

  3. #3
    Registered User
    Join Date
    Sep 2006

    Re: C++ and Assembly

    Well, I just did a simple "Hello World" program in ASM. Compiled on 6.1 SDK.

    But there is some problems.

    I first wrote that program in plain C, then compiled it and saved the .exe
    Then I wrote the same program in inline ARM ASM, compiled it and saved the .exe

    Now the strange thing. I open 2 instances of IDA disassembler. I put C exe in one and ASM exe in other. They look EXACTLY the same. When I mean exactly, then I really mean to the tiny detail.

    But, when I run C exe on the phone I get a nice "Hello World, press any key..."
    When I run ASM exe on the phone I get million of scrolling "(" and then something like ">HD$ press any key...".

    Really strange. Exe's are 100% same in the disassembler (but C exe is 4 bytes bigger than ASM on disk), but they are not working the same way on the phone.

    I am still looking into it, but can't really find a solution.

Similar Threads

  1. RVCT Compiler and Assembly source(.s files)
    By vvsnaresh in forum Symbian
    Replies: 5
    Last Post: 2010-10-22, 02:37
  2. Assembly (.s) file compilation in Symbian 9.1
    By munish_jindal in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2007-05-10, 10:06
  3. SDK Installation problems (wrong drive) S60 3rd
    By Jeepy in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2007-03-12, 21:59
  4. Jumping out to assembly?
    By SpaceCowboy in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-02-28, 17:28
  5. Is the VC++ IDE Debugging only in assembly?
    By kmkri in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-09-23, 10:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts