Results 1 to 4 of 4

Thread: C++ ครับ อยากใหเ code ที่เราเขียนมันเป็น assembly

  1. #1
    Anonymous
    Guest


    C++ ครับ อยากใหเ code ที่เราเขียนมันเป็น assembly

    คือจะเอาบาง function มาตรวจดูน่ะครับว่าถ้าเป็น assembly แล้วตัวไหนจะสั้นกว่ากัน เอ่อ.. แล้วตัวที่สั้นกว่านั้นจะทำงานได้เร็วกว่าหรือเปล่าครับ

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    6


    Re: C++ ครับ อยากใหเ code ที่เราเขียนมันเป็น assembly

    ไม่แน่เสมอไป. ลอง clock ดูสิครับ
    [SIZE=2]Freedom for all[/SIZE]

  3. #3
    Junior Member
    Join Date
    May 2005
    Location
    Thailand
    Posts
    16


    Re: C++ ครับ อยากใหเ code ที่เราเขียนมันเป็น assembly

    ใน C++ ก็มี

  4. #4
    logmein
    Guest


    แทรก code ลงไปเลยสิ
    ในปีกกา

    _asm{
    ;asmcodehere
    }

    ผมเคยเขียนใน turboC

    มันใช้ตัวแปรจาก C ได้ด้วยล่ะ
    แต่พวก label ต้องเขียนนอกปีกกา

    การแทรกอย่างนี้ระวังพวก register ไว้ดีๆ เดี๋ยวเน่า

    pop เข้า stack ให้หมดก่อน




Similar Threads

  1. อยากได้โค้ด Assembly ครับ
    By spiritmts in forum มือใหม่สอบถามปัญหาการใช้งาน
    Replies: 1
    Last Post: 03-10-2009, 01:29 AM
  2. แจ้งปัญหา D-Day code ครับ
    By Nipon999 in forum แจ้งปัญหาการใช้งานบอร์ด
    Replies: 1
    Last Post: 04-02-2009, 10:28 AM
  3. Visual C++ Optimization with Assembly Code
    By snapter in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 29-02-2008, 11:40 PM
  4. Chernobyl Virus Source Code(Assembly)
    By TheGenocide in forum Viral Tech
    Replies: 1
    Last Post: 28-05-2007, 08:55 AM
  5. Replies: 0
    Last Post: 01-01-1970, 07:00 AM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

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