Results 1 to 6 of 6

Thread: C++ and assembly [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170

    C++ and assembly [Resolved]

    well, i know one thing:
    there is a keyword __asm in c++
    sure thats not news, but guess i want to know more about that.

    i have decieded to send this thread in assembly forum because i assumed that people who program assembly know c++, but not nessarily vice versa.

    the point i want to get from __asm keyword is performance,
    as i am trying to make an AI chess program i thought that inserting direct assembly code in the c++ program will boost performance.

    PS: i am NOT an assembly programmer, but trying to figure out if its worth the trouble to start learning it.

    is that a reasonable idea ???
    would it be really better to use assembly ??

    another thing, is there limitation on __asm ??
    i mean are all assembly statements and stuff available ???

    also, can i use c++ compiler as an assembler, intead of getting a seperate assembler ???

    for example:
    Code:
    void main(){
    __asm{
    /* some assembly code */
    }
    }
    does that have disadvantages ??!

    also, as i have no idea about assembly language, i'd find it usefull to know few other stuff:
    * does assembly provide the idea of "function" or "sub" ??
    * does assembly provide the idea of a class ??
    * can i make a dll file ??
    * back to __asm keyword, does c++ change 1 statement into 1 assembly intruction. i mean would i find a statement which is lets say 5 assembly instruction, that i can do manually in assembly in one or two assembly instruction ?? (can u provide an example ?? )

    thx in advance for trying to answer one or all of my questions.
    Last edited by ZaidGS; Aug 31st, 2003 at 06:00 AM.

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