mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-29 08:14:31 +00:00
Estimated hours taken: 2 Branches: main Move the intermodule analysis framework into the `compiler' directory, in preparation for making it specific to the Mercury compiler, rather than having it generic in case some fictional being might want to use it with a .NET compiler one day. This will make it easier to use and modify. compiler/analysis.file.m: compiler/analysis.m: Copy these files from the `analysis' directory. compiler/top_level.m: Include analysis.m as a new package. compiler/Mercury.options: Add a bug workaround line from analysis/Mercury.options. analysis/Mercury.options: analysis/Mmakefile: analysis/analysis.file.m: analysis/analysis.m: analysis/mer_analysis.m: Replace the contents of these files with comments that the analysis framework is now in the `compiler' directory. We don't actually delete them so their histories remain easily accessible. analysis/README: Mention that the code has been moved. compiler/notes/compiler_design.html: compiler/notes/overall_design.html: Update documentation. Mmake.workspace: Mmakefile: configure.in: compiler/.mgnuc_copts: compiler/COMP_FLAGS.in: compiler/Mmakefile: deep_profiler/.mgnuc_copts: scripts/Mmake.vars.in: scripts/c2init.in: scripts/mercury_config.in: scripts/prepare_tmp_dir_fixed_part.in: tools/binary: tools/binary_step: tools/bootcheck: tools/lmc.in: tools/make_arena: compiler/notes/coding_standards.html: Remove references to the `analysis' directory and `libmer_analysis'.
30 lines
547 B
Bash
Executable File
30 lines
547 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Create and populate an arena directory for use in speed tests.
|
|
|
|
if test ! -d boehm_gc
|
|
then
|
|
echo "make_arena should be executed at the top level of a workspace"
|
|
exit 1
|
|
fi
|
|
|
|
if test -d arena
|
|
then
|
|
echo "make_arena: arena directory already exists"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir arena
|
|
|
|
# copy all the compiler source files into the arena
|
|
cp compiler/*.m arena
|
|
|
|
# copy the interface files and possibly optimization files they will need
|
|
for dir in library mdbcomp compiler
|
|
do
|
|
cp $dir/*.int* arena
|
|
cp $dir/*.*opt arena > /dev/null 2>&1
|
|
done
|
|
|
|
exit 0
|