CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    13

    Assembly Declaratios / Instructions - Help

    Im making a class in C++ to classify a declaration in g++ generated assembly

    ".def __Unwind_SjLj_Unregister; .scl 2; .type 32; .endef"

    and

    ".ascii "Ace of Diamonds\0""

    are two examples. Now what member functions could I create that would be usefull in identifying this as a declaration? IE what are ALL the aspects of a declaration that I need to make note of in my C++ class? Be it from what is being declared to what type etc. I am quite new to assembly and therefore am unsure as to what to include, exclude etc.
    The same for instructions. IE operand 1 , 2, 3, etc.

    For example, how would I check if a line is a valid declaration or a valid instruction? An instruction would not include a label, or a declaration. Any other valid assembly would be an instruction. But, how what are some characteristics of valid declarations and instructions? IE what would I tell my parsing engine to look for?
    Last edited by Diego898; July 12th, 2005 at 09:42 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    Poland
    Posts
    1,165

    Re: Assembly Declaratios - Help

    Are you compiling this on Windows or Linux?
    Could you also attach a project or sample files which you are converting into assembly?
    I will take closer look at it tommorow and maybe will be able to help you

    Hob
    B+!
    'There is no cat' - A. Einstein

    Use [code] [/code] tags!

    Did YOU share your photo with us at CG Members photo gallery ?

  3. #3
    Join Date
    Jun 2005
    Posts
    13

    Re: Assembly Declaratios - Help

    I've PMed you

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured