Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Service Pack Pin
Michael Dunn7-Jul-03 17:34
sitebuilderMichael Dunn7-Jul-03 17:34 
GeneralQuestion about global static function and global static variable. Pin
George27-Jul-03 3:23
George27-Jul-03 3:23 
GeneralRe: Question about global static function and global static variable. Pin
AlexO7-Jul-03 3:37
AlexO7-Jul-03 3:37 
GeneralRe: Question about global static function and global static variable. Pin
George27-Jul-03 3:41
George27-Jul-03 3:41 
GeneralRe: Question about global static function and global static variable. Pin
David Chamberlain7-Jul-03 4:06
David Chamberlain7-Jul-03 4:06 
GeneralRe: Question about global static function and global static variable. Pin
John M. Drescher7-Jul-03 3:52
John M. Drescher7-Jul-03 3:52 
GeneralRe: Question about global static function and global static variable. Pin
George27-Jul-03 4:01
George27-Jul-03 4:01 
GeneralRe: Question about global static function and global static variable. Pin
John M. Drescher7-Jul-03 7:56
John M. Drescher7-Jul-03 7:56 
David has the correct answer on this: http://www.codeproject.com/script/comments/forums.asp?msg=544541&forumid=1647&mode=all&userid=9241#xx544541xx[^]

I was just thinking about it in an optimization point of view and did not remember exactly what a static function in c was. My point is a lot of the old optimizations are unnecissary because of the way current processors work. At any one time many instructions are executing and if you can avoid branches most integer instructions take only one clock. My point is that worrying about something that can save you a few clocks on a machine that executes 4 billion clocks (2Ghz * 2 pipelines) in one second is pointless unless you are executint the function millions of times. If this is the case make the function inline..


John
GeneralRe: Question about global static function and global static variable. Pin
Ryan Binns7-Jul-03 4:23
Ryan Binns7-Jul-03 4:23 
GeneralRe: Question about global static function and global static variable. Pin
basementman7-Jul-03 5:04
basementman7-Jul-03 5:04 
GeneralRe: Question about global static function and global static variable. Pin
Ryan Binns7-Jul-03 5:12
Ryan Binns7-Jul-03 5:12 
GeneralRe: Question about global static function and global static variable. Pin
basementman7-Jul-03 5:20
basementman7-Jul-03 5:20 
GeneralRe: Question about global static function and global static variable. Pin
Ryan Binns7-Jul-03 5:24
Ryan Binns7-Jul-03 5:24 
GeneralRe: Question about global static function and global static variable. Pin
John R. Shaw7-Jul-03 9:31
John R. Shaw7-Jul-03 9:31 
GeneralStoring Images into Oracle as Blob From VC++ Or MFC Pin
Shaffiq7-Jul-03 2:41
Shaffiq7-Jul-03 2:41 
GeneralRe: Storing Images into Oracle as Blob From VC++ Or MFC Pin
John M. Drescher7-Jul-03 3:23
John M. Drescher7-Jul-03 3:23 
GeneralCRichEdit & SetWindowText Pin
AnTri7-Jul-03 1:16
AnTri7-Jul-03 1:16 
GeneralRe: CRichEdit & SetWindowText Pin
David Crow7-Jul-03 2:40
David Crow7-Jul-03 2:40 
GeneralRe: CRichEdit & SetWindowText Pin
AnTri7-Jul-03 8:41
AnTri7-Jul-03 8:41 
GeneralRe: CRichEdit & SetWindowText Pin
David Crow7-Jul-03 10:15
David Crow7-Jul-03 10:15 
Generaldebugging Opengl with MFC 6.0 Pin
kassad6667-Jul-03 0:00
kassad6667-Jul-03 0:00 
GeneralRe: debugging Opengl with MFC 6.0 Pin
Rage7-Jul-03 0:49
professionalRage7-Jul-03 0:49 
GeneralRe: debugging Opengl with MFC 6.0 Pin
Anonymous7-Jul-03 4:50
Anonymous7-Jul-03 4:50 
GeneralRe: debugging Opengl with MFC 6.0 Pin
Rage7-Jul-03 5:27
professionalRage7-Jul-03 5:27 
GeneralWM_PRINTCLIENT message Pin
peenu6-Jul-03 23:32
peenu6-Jul-03 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.