You should not modify files under the build directory.  The source files
you see there are either auto-generated code or just links to the ones
under src.

SCons automatically tracks dependencies, so if you make changes to the
source files under src, then re-running the scons command will take the
appropriate steps to rebuild the binary under build.

Steve



On Thu, Jan 9, 2014 at 10:30 AM, Aditya Deshpande <
[email protected]> wrote:

> Hi,
>
> I am a beginner with gem5 and had these naive question regarding file
> structure for gem5.
>
> 1. In the gem5 home directory there is a /build /src directory. From this
> directory we run the "scons build/X86/gem5.opt" command and a build is
> built into <gem5_home> /build/X86/ directory.
> 2. If for this build I want to make certain changes to the memory
> structure or add debug flags. Which files should be modified - a) the files
> in <gem5_home>/src or (b) the files inside the <gem5_home>/build/X86/
> directory.  Which Sconscript file to modify.
> 3. Also If I modify a build, how to recompile a specific build without
> creating another build?
>
> Regards,
> Aditya Deshpande
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to