Thread: Accesing individual bytes in an int

  1. #16
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by quzah View Post
    How are you getting one memory access?
    Good compiler will keep it in a register.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  2. #17
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Definitely option #2.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help in accesing .txt
    By winber in forum C Programming
    Replies: 5
    Last Post: 12-04-2010, 11:28 AM
  2. working set, virtual bytes and private bytes
    By George2 in forum C++ Programming
    Replies: 3
    Last Post: 01-10-2008, 02:39 AM
  3. Reading Individual bits from 2 bytes
    By Giania in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 03:16 AM
  4. Accesing Windows
    By MethodMan in forum Linux Programming
    Replies: 3
    Last Post: 06-04-2002, 12:14 AM
  5. accesing memory
    By Prakash in forum C Programming
    Replies: 4
    Last Post: 09-18-2001, 02:46 PM