On 09/10/2012 08:17 PM, Xin Tong wrote: > I have 2 questions about TCGv. > > 1. if DEBUG is enabled on TCGv, TCGv is wrapped in a C struct. and > would it not be very expensive to pass TCGv by copy for all the > tcg_gen_xxx functions.i.e. tcg_gen_mov_tl(cpu_cc_src, cpu_T[1]);
No. The compiler is (generally) able to look through a struct with a single member. > 2. I have created some files that need to include tcg-op.h and cpu.h ( > i use TCGv in the files). since cpu.h are architecture specific. what > do i put as the include path and how i should organize the files so > that the correct architecture specific cpu.h gets picked up. i tried > many things. but it seems none of them works very well. You've not provided enough details to give a meaningful answer. r~