Blue Swirl wrote: > On 11/1/07, Fabrice Bellard <[EMAIL PROTECTED]> wrote: > > Blue Swirl wrote: > > > Hi, > > > > > > With the automatic dependency rule installed, modifying vl.h causes > > > all files to be recompiled. This is of course the correct action, but > > > it's a major slowdown for development too. > > > > There must be an option in the Makefile to disable the automatic > > dependency check. > > > > > How should we split vl.h into smaller pieces? Give each device a > > > header file, like m48t59? What about other stuff exported from vl.c? > > > > The net result is that you will have dozens of header files with only > > one line in them as most devices only export one function. > > I have another solution: include all architecture specific files from > the main file. This actually makes the compilation faster and the > resulting binary is smaller (maybe faster).
I it a solution? You always end up with the worst case of recompiling everything now. > Changing the architecture > specific code needs no changes to vl.h, just a recompile of sun4m.c, > but this is instantaneous on my machine. Automatic dependencies also > handle this case. I guess some may find this style pretty ugly. It is ugly. You basically re-invented gcc's -combine option but without avoiding the namespace problem of a single file scope. Thiemo