http://bugs.winehq.org/show_bug.cgi?id=21423
--- Comment #6 from Dan Kegel dank@kegel.com 2010-01-30 23:39:22 --- For what it's worth, I ran the compiler with +relay and counted function calls between the lines where two different input .cc files were opened. Here are all the ones that happened more than 100 times:
139 KERNEL32.WideCharToMultiByte 175 KERNEL32.GetFullPathNameW 175 KERNEL32.GetVersion 190 KERNEL32.VirtualAlloc 228 KERNEL32.FindResourceW 228 KERNEL32.LoadResource 240 KERNEL32.InterlockedDecrement 257 KERNEL32.InterlockedIncrement 291 KERNEL32.WriteFile 310 KERNEL32.LCMapStringW 772 KERNEL32.ReadFile 869 ntdll.NtCurrentTeb 1586 KERNEL32.SetFilePointer 2475 KERNEL32.GetFileAttributesW 2608 ntdll.RtlFreeHeap 2701 ntdll.RtlAllocateHeap 2923 KERNEL32.GetProcessHeap 17332 KERNEL32.SetLastError 17351 KERNEL32.FlsGetValue 17370 KERNEL32.TlsGetValue 19707 KERNEL32.GetLastError