diff options
author | Franklin S. Cooper Jr | 2013-06-04 08:55:04 -0500 |
---|---|---|
committer | Franklin S. Cooper Jr | 2013-06-06 13:46:10 -0500 |
commit | eba9e69247c105f6d8dbcb56452ad4c4ea2df31e (patch) | |
tree | 96b0f00a1c91db5db3d226b18d5006904e8b4ccd | |
parent | 176c8869817913967ae1a0d561535eb40ba8a527 (diff) | |
download | arm_benchmarks-eba9e69247c105f6d8dbcb56452ad4c4ea2df31e.tar.gz arm_benchmarks-eba9e69247c105f6d8dbcb56452ad4c4ea2df31e.tar.xz arm_benchmarks-eba9e69247c105f6d8dbcb56452ad4c4ea2df31e.zip |
Use single set of files for both arch.
* Previously a separate directory was needed for armv5te and armv7a due to
hardcoded values in the Makefile and also in the CCS project.
* The hardcoded values in the Makefile has been fixed by using the Rules.make in
the SDK to provide the proper values.
* The .cproject issue will now be fixed by using a temporary value which will be
replaced by the OE build system used to build the SDK.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
-rw-r--r-- | DIRS (renamed from armv5te/DIRS) | 0 | ||||
-rw-r--r-- | Makefile (renamed from armv5te/Makefile) | 0 | ||||
-rwxr-xr-x | armv5te/dhrystone/.cproject | 124 | ||||
-rw-r--r-- | armv5te/dhrystone/Makefile | 120 | ||||
-rwxr-xr-x | armv5te/linpack/.cproject | 123 | ||||
-rw-r--r-- | armv5te/linpack/Makefile | 123 | ||||
-rwxr-xr-x | armv5te/scripts/runDhrystone | 51 | ||||
-rwxr-xr-x | armv5te/scripts/runWhetstone | 41 | ||||
-rwxr-xr-x | armv5te/whetstone/.cproject | 117 | ||||
-rw-r--r-- | armv5te/whetstone/Makefile | 123 | ||||
-rw-r--r-- | armv7a/DIRS | 7 | ||||
-rw-r--r-- | armv7a/Makefile | 66 | ||||
-rw-r--r-- | armv7a/dhrystone/.project | 81 | ||||
-rwxr-xr-x | armv7a/dhrystone/dhry.h | 469 | ||||
-rw-r--r-- | armv7a/dhrystone/dhry_1.c | 454 | ||||
-rw-r--r-- | armv7a/dhrystone/dhry_2.c | 230 | ||||
-rw-r--r-- | armv7a/linpack/.project | 82 | ||||
-rw-r--r-- | armv7a/linpack/linpack.c | 946 | ||||
-rwxr-xr-x | armv7a/scripts/runLinpack | 41 | ||||
-rw-r--r-- | armv7a/whetstone/.project | 82 | ||||
-rwxr-xr-x | armv7a/whetstone/whetstone.c | 471 | ||||
-rwxr-xr-x | dhrystone/.cproject (renamed from armv7a/dhrystone/.cproject) | 8 | ||||
-rw-r--r-- | dhrystone/.project (renamed from armv5te/dhrystone/.project) | 0 | ||||
-rw-r--r-- | dhrystone/Makefile (renamed from armv7a/dhrystone/Makefile) | 2 | ||||
-rwxr-xr-x | dhrystone/dhry.h (renamed from armv5te/dhrystone/dhry.h) | 0 | ||||
-rw-r--r-- | dhrystone/dhry_1.c (renamed from armv5te/dhrystone/dhry_1.c) | 0 | ||||
-rw-r--r-- | dhrystone/dhry_2.c (renamed from armv5te/dhrystone/dhry_2.c) | 0 | ||||
-rwxr-xr-x | linpack/.cproject (renamed from armv7a/linpack/.cproject) | 8 | ||||
-rw-r--r-- | linpack/.project (renamed from armv5te/linpack/.project) | 0 | ||||
-rw-r--r-- | linpack/Makefile (renamed from armv7a/linpack/Makefile) | 2 | ||||
-rw-r--r-- | linpack/linpack.c (renamed from armv5te/linpack/linpack.c) | 0 | ||||
-rwxr-xr-x | scripts/runDhrystone (renamed from armv7a/scripts/runDhrystone) | 0 | ||||
-rwxr-xr-x | scripts/runLinpack (renamed from armv5te/scripts/runLinpack) | 0 | ||||
-rwxr-xr-x | scripts/runWhetstone (renamed from armv7a/scripts/runWhetstone) | 0 | ||||
-rwxr-xr-x | whetstone/.cproject (renamed from armv7a/whetstone/.cproject) | 8 | ||||
-rw-r--r-- | whetstone/.project (renamed from armv5te/whetstone/.project) | 0 | ||||
-rw-r--r-- | whetstone/Makefile (renamed from armv7a/whetstone/Makefile) | 2 | ||||
-rwxr-xr-x | whetstone/whetstone.c (renamed from armv5te/whetstone/whetstone.c) | 0 |
38 files changed, 15 insertions, 3766 deletions
diff --git a/armv5te/Makefile b/Makefile index 54cbe3c..54cbe3c 100644 --- a/armv5te/Makefile +++ b/Makefile | |||
diff --git a/armv5te/dhrystone/.cproject b/armv5te/dhrystone/.cproject deleted file mode 100755 index da265df..0000000 --- a/armv5te/dhrystone/.cproject +++ /dev/null | |||
@@ -1,124 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="0.527593830.1337711727"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.527593830.1337711727" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
11 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
16 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
17 | </extensions> | ||
18 | </storageModule> | ||
19 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
20 | <configuration buildProperties="" description="" id="0.527593830.1337711727" name="Debug" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
21 | <folderInfo id="0.527593830.1337711727." name="/" resourcePath=""> | ||
22 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1695893991" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
23 | <targetPlatform binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.build.core.prefbase.toolchain.1695893991.1466311300" name=""/> | ||
24 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.992659835" incrementalBuildTarget="debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
25 | <outputEntries> | ||
26 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Debug"/> | ||
27 | </outputEntries> | ||
28 | </builder> | ||
29 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.341859938" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
30 | <tool id="org.eclipse.cdt.build.core.settings.holder.291429490" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
31 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1469220026" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
32 | </tool> | ||
33 | <tool id="org.eclipse.cdt.build.core.settings.holder.1192676892" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
34 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.963419814" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
35 | </tool> | ||
36 | <tool id="org.eclipse.cdt.build.core.settings.holder.276951687" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
37 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.10951792" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
38 | </tool> | ||
39 | <tool id="org.eclipse.cdt.build.core.settings.holder.752754033" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1805097013" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
42 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
43 | </option> | ||
44 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1605734610" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | ||
45 | <listOptionValue builtIn="false" value="TIME"/> | ||
46 | </option> | ||
47 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1716569330" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
48 | </tool> | ||
49 | </toolChain> | ||
50 | </folderInfo> | ||
51 | </configuration> | ||
52 | </storageModule> | ||
53 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
54 | </cconfiguration> | ||
55 | <cconfiguration id="0.527593830.1636476082"> | ||
56 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.527593830.1636476082" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
57 | <externalSettings/> | ||
58 | <extensions> | ||
59 | <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
60 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
61 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
62 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
63 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
64 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
65 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
66 | </extensions> | ||
67 | </storageModule> | ||
68 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
69 | <configuration artifactName="dhrystone" buildProperties="" description="" id="0.527593830.1636476082" name="Release" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
70 | <folderInfo id="0.527593830.1636476082." name="/" resourcePath=""> | ||
71 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.813654219" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
72 | <targetPlatform binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.build.core.prefbase.toolchain.813654219.4289879" name=""/> | ||
73 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.94483635" incrementalBuildTarget="release" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
74 | <outputEntries> | ||
75 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Release"/> | ||
76 | </outputEntries> | ||
77 | </builder> | ||
78 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.757715122" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
79 | <tool id="org.eclipse.cdt.build.core.settings.holder.1388191138" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
80 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.2108327467" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
81 | </tool> | ||
82 | <tool id="org.eclipse.cdt.build.core.settings.holder.1971634297" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
83 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.81544068" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
84 | </tool> | ||
85 | <tool id="org.eclipse.cdt.build.core.settings.holder.160514696" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
86 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.279334101" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
87 | </tool> | ||
88 | <tool id="org.eclipse.cdt.build.core.settings.holder.497700629" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
89 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1732738579" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
90 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
91 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
92 | </option> | ||
93 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.179279206" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | ||
94 | <listOptionValue builtIn="false" value="TIME"/> | ||
95 | </option> | ||
96 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1481427685" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
97 | </tool> | ||
98 | </toolChain> | ||
99 | </folderInfo> | ||
100 | </configuration> | ||
101 | </storageModule> | ||
102 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
103 | </cconfiguration> | ||
104 | </storageModule> | ||
105 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
106 | <project id="dhrystone.null.1731490859" name="dhrystone"/> | ||
107 | </storageModule> | ||
108 | <storageModule moduleId="refreshScope" versionNumber="1"> | ||
109 | <resource resourceType="PROJECT" workspacePath="/dhrystone"/> | ||
110 | </storageModule> | ||
111 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
112 | <storageModule moduleId="scannerConfiguration"> | ||
113 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
114 | <scannerConfigBuildInfo instanceId="0.527593830.1337711727"> | ||
115 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
116 | </scannerConfigBuildInfo> | ||
117 | <scannerConfigBuildInfo instanceId="0.527593830"> | ||
118 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
119 | </scannerConfigBuildInfo> | ||
120 | <scannerConfigBuildInfo instanceId="0.527593830.1636476082"> | ||
121 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
122 | </scannerConfigBuildInfo> | ||
123 | </storageModule> | ||
124 | </cproject> | ||
diff --git a/armv5te/dhrystone/Makefile b/armv5te/dhrystone/Makefile deleted file mode 100644 index 6a8971a..0000000 --- a/armv5te/dhrystone/Makefile +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | # ---------------------------------------------------------------------------- | ||
2 | # @file Makefile | ||
3 | # | ||
4 | # @path | ||
5 | # | ||
6 | # @desc Makefile for dhrystone (Debug and Release versions) | ||
7 | # | ||
8 | # @ver 1.10 | ||
9 | # ---------------------------------------------------------------------------- | ||
10 | # Copyright (c) Texas Instruments Incorporated 2002-2009 | ||
11 | # | ||
12 | # Use of this software is controlled by the terms and conditions found in the | ||
13 | # license agreement under which this software has been supplied or provided. | ||
14 | # | ||
15 | |||
16 | # ---------------------------------------------------------------------------- | ||
17 | # Included defined variables | ||
18 | # ---------------------------------------------------------------------------- | ||
19 | -include ../../../Rules.make | ||
20 | |||
21 | # ---------------------------------------------------------------------------- | ||
22 | # Variables passed in externally | ||
23 | # ---------------------------------------------------------------------------- | ||
24 | CFLAGS ?= -march=armv5te -mtune=arm926ej-s | ||
25 | CROSS_COMPILE ?= | ||
26 | |||
27 | # ---------------------------------------------------------------------------- | ||
28 | # Name of the Linux compiler | ||
29 | # ---------------------------------------------------------------------------- | ||
30 | CC := $(CROSS_COMPILE)gcc | ||
31 | |||
32 | # ---------------------------------------------------------------------------- | ||
33 | # General options, sources and libraries | ||
34 | # ---------------------------------------------------------------------------- | ||
35 | NAME := dhrystone | ||
36 | SRCS := dhry_1.c dhry_2.c | ||
37 | HDRS := dhry.h | ||
38 | OBJS := | ||
39 | DEBUG := | ||
40 | BIN := dhrystone | ||
41 | |||
42 | |||
43 | # ---------------------------------------------------------------------------- | ||
44 | # Compiler and Linker flags for Debug | ||
45 | # ---------------------------------------------------------------------------- | ||
46 | OBJDIR_D := Debug | ||
47 | BINDIR_D := $(OBJDIR_D) | ||
48 | LIBS_D := $(LIBS) | ||
49 | OBJS_D := $(SRCS:%.c=$(OBJDIR_D)/%.o) | ||
50 | ALL_DEBUG := -g3 -gdwarf-2 | ||
51 | |||
52 | # ---------------------------------------------------------------------------- | ||
53 | # Compiler and Linker flags for Release | ||
54 | # ---------------------------------------------------------------------------- | ||
55 | OBJDIR_R := Release | ||
56 | BINDIR_R := $(OBJDIR_R) | ||
57 | LIBS_R := $(LIBS) | ||
58 | OBJS_R := $(SRCS:%.c=$(OBJDIR_R)/%.o) | ||
59 | ALL_RELEASE := -O3 | ||
60 | |||
61 | # ---------------------------------------------------------------------------- | ||
62 | # Compiler include directories | ||
63 | # ---------------------------------------------------------------------------- | ||
64 | INCLUDES := | ||
65 | |||
66 | # ---------------------------------------------------------------------------- | ||
67 | # All compiler options to be passed to the command line | ||
68 | # ---------------------------------------------------------------------------- | ||
69 | ALL_CFLAGS := $(INCLUDES) \ | ||
70 | -c \ | ||
71 | $(CFLAGS) | ||
72 | |||
73 | LDFLAGS := -Wl,--hash-style=gnu \ | ||
74 | -Wl,-O1 \ | ||
75 | |||
76 | # ---------------------------------------------------------------------------- | ||
77 | # Compiler symbol definitions | ||
78 | # ---------------------------------------------------------------------------- | ||
79 | DEFS := -DTIME | ||
80 | |||
81 | # ---------------------------------------------------------------------------- | ||
82 | # Compiler and Linker procedure | ||
83 | # From this point and on changes are very unlikely. | ||
84 | # ---------------------------------------------------------------------------- | ||
85 | .PHONY: all | ||
86 | all: debug release | ||
87 | |||
88 | # ---------------------------------------------------------------------------- | ||
89 | # Building Debug... | ||
90 | # ---------------------------------------------------------------------------- | ||
91 | .PHONY: debug | ||
92 | debug: $(BINDIR_D)/$(BIN) | ||
93 | |||
94 | $(BINDIR_D)/$(BIN): $(OBJS_D) | ||
95 | @echo Compiling Debug... | ||
96 | $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS) -Wl,-Map,$(BINDIR_D)/$(NAME).map | ||
97 | |||
98 | $(OBJDIR_D)/%.o : %.c $(HDRS) | ||
99 | @mkdir -p $(OBJDIR_D) | ||
100 | $(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $< | ||
101 | |||
102 | # ---------------------------------------------------------------------------- | ||
103 | # Building Release... | ||
104 | # ---------------------------------------------------------------------------- | ||
105 | .PHONY: release | ||
106 | release: $(BINDIR_R)/$(BIN) | ||
107 | |||
108 | $(BINDIR_R)/$(BIN): $(OBJS_R) | ||
109 | @echo Compiling Release... | ||
110 | $(CC) -o $@ $(OBJS_R) $(LIBS_R) $(LDFLAGS) -Wl,-Map,$(BINDIR_R)/$(NAME).map | ||
111 | |||
112 | $(OBJDIR_R)/%.o : %.c $(HDRS) | ||
113 | @mkdir -p $(OBJDIR_R) | ||
114 | $(CC) $(DEFS) $(ALL_RELEASE) $(ALL_CFLAGS) -o$@ $< | ||
115 | |||
116 | .PHONY: clean | ||
117 | clean: | ||
118 | @rm -rf $(OBJDIR_D) | ||
119 | @rm -rf $(OBJDIR_R) | ||
120 | |||
diff --git a/armv5te/linpack/.cproject b/armv5te/linpack/.cproject deleted file mode 100755 index 4cdf5e5..0000000 --- a/armv5te/linpack/.cproject +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="0.348955383.1167891326"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.348955383.1167891326" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
16 | </extensions> | ||
17 | </storageModule> | ||
18 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
19 | <configuration buildProperties="" description="" id="0.348955383.1167891326" name="Debug" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
20 | <folderInfo id="0.348955383.1167891326." name="/" resourcePath=""> | ||
21 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.460193004" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
22 | <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.460193004.1652455405" name=""/> | ||
23 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.2020310907" incrementalBuildTarget="debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
24 | <outputEntries> | ||
25 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Debug"/> | ||
26 | </outputEntries> | ||
27 | </builder> | ||
28 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.53760075" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
29 | <tool id="org.eclipse.cdt.build.core.settings.holder.905914954" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
30 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1869723695" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
31 | </tool> | ||
32 | <tool id="org.eclipse.cdt.build.core.settings.holder.1055140584" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
33 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1993432822" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
34 | </tool> | ||
35 | <tool id="org.eclipse.cdt.build.core.settings.holder.2029663292" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
36 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1297223104" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
37 | </tool> | ||
38 | <tool id="org.eclipse.cdt.build.core.settings.holder.1901028359" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
39 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1797844529" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
42 | </option> | ||
43 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1886085122" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | ||
44 | <listOptionValue builtIn="false" value="SP"/> | ||
45 | <listOptionValue builtIn="false" value="UNROLL"/> | ||
46 | </option> | ||
47 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.2066156017" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
48 | </tool> | ||
49 | </toolChain> | ||
50 | </folderInfo> | ||
51 | </configuration> | ||
52 | </storageModule> | ||
53 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
54 | </cconfiguration> | ||
55 | <cconfiguration id="0.348955383.1375752924"> | ||
56 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.348955383.1375752924" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
57 | <externalSettings/> | ||
58 | <extensions> | ||
59 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
60 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
61 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
62 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
63 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
64 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
65 | </extensions> | ||
66 | </storageModule> | ||
67 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
68 | <configuration buildProperties="" description="" id="0.348955383.1375752924" name="Release" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
69 | <folderInfo id="0.348955383.1375752924." name="/" resourcePath=""> | ||
70 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.460474816" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
71 | <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.460474816.1138144527" name=""/> | ||
72 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.977890287" incrementalBuildTarget="release" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
73 | <outputEntries> | ||
74 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Release"/> | ||
75 | </outputEntries> | ||
76 | </builder> | ||
77 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.1913743804" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
78 | <tool id="org.eclipse.cdt.build.core.settings.holder.386075517" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
79 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1290753312" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
80 | </tool> | ||
81 | <tool id="org.eclipse.cdt.build.core.settings.holder.401962713" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
82 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1507664781" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
83 | </tool> | ||
84 | <tool id="org.eclipse.cdt.build.core.settings.holder.497421996" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
85 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1881997392" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
86 | </tool> | ||
87 | <tool id="org.eclipse.cdt.build.core.settings.holder.1760726128" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
88 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.521894141" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
89 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
90 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
91 | </option> | ||
92 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1458407075" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | ||
93 | <listOptionValue builtIn="false" value="SP"/> | ||
94 | <listOptionValue builtIn="false" value="UNROLL"/> | ||
95 | </option> | ||
96 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.818122184" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
97 | </tool> | ||
98 | </toolChain> | ||
99 | </folderInfo> | ||
100 | </configuration> | ||
101 | </storageModule> | ||
102 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
103 | </cconfiguration> | ||
104 | </storageModule> | ||
105 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
106 | <project id="linpack.null.1819670612" name="linpack"/> | ||
107 | </storageModule> | ||
108 | <storageModule moduleId="refreshScope" versionNumber="1"> | ||
109 | <resource resourceType="PROJECT" workspacePath="/linpack"/> | ||
110 | </storageModule> | ||
111 | <storageModule moduleId="scannerConfiguration"> | ||
112 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
113 | <scannerConfigBuildInfo instanceId="0.348955383"> | ||
114 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
115 | </scannerConfigBuildInfo> | ||
116 | <scannerConfigBuildInfo instanceId="0.348955383.1375752924"> | ||
117 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
118 | </scannerConfigBuildInfo> | ||
119 | <scannerConfigBuildInfo instanceId="0.348955383.1167891326"> | ||
120 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
121 | </scannerConfigBuildInfo> | ||
122 | </storageModule> | ||
123 | </cproject> | ||
diff --git a/armv5te/linpack/Makefile b/armv5te/linpack/Makefile deleted file mode 100644 index 4700f32..0000000 --- a/armv5te/linpack/Makefile +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | # ---------------------------------------------------------------------------- | ||
2 | # @file Makefile | ||
3 | # | ||
4 | # @path | ||
5 | # | ||
6 | # @desc Makefile for linpack (Debug and Release versions) | ||
7 | # | ||
8 | # @ver 1.10 | ||
9 | # ---------------------------------------------------------------------------- | ||
10 | # Copyright (c) Texas Instruments Incorporated 2002-2009 | ||
11 | # | ||
12 | # Use of this software is controlled by the terms and conditions found in the | ||
13 | # license agreement under which this software has been supplied or provided. | ||
14 | # | ||
15 | |||
16 | # ---------------------------------------------------------------------------- | ||
17 | # Included defined variables | ||
18 | # ---------------------------------------------------------------------------- | ||
19 | -include ../../../Rules.make | ||
20 | |||
21 | # ---------------------------------------------------------------------------- | ||
22 | # Variables passed in externally | ||
23 | # ---------------------------------------------------------------------------- | ||
24 | CFLAGS ?= -march=armv5te -mtune=arm926ej-s | ||
25 | CROSS_COMPILE ?= | ||
26 | |||
27 | # ---------------------------------------------------------------------------- | ||
28 | # Name of the Linux compiler | ||
29 | # ---------------------------------------------------------------------------- | ||
30 | CC := $(CROSS_COMPILE)gcc | ||
31 | |||
32 | # ---------------------------------------------------------------------------- | ||
33 | # General options, sources and libraries | ||
34 | # ---------------------------------------------------------------------------- | ||
35 | NAME := linpack | ||
36 | SRCS := linpack.c | ||
37 | HDRS := | ||
38 | OBJS := | ||
39 | DEBUG := | ||
40 | BIN := linpack | ||
41 | |||
42 | |||
43 | # ---------------------------------------------------------------------------- | ||
44 | # Compiler and Linker flags for Debug | ||
45 | # ---------------------------------------------------------------------------- | ||
46 | OBJDIR_D := Debug | ||
47 | BINDIR_D := $(OBJDIR_D) | ||
48 | LIBS_D := $(LIBS) | ||
49 | OBJS_D := $(SRCS:%.c=$(OBJDIR_D)/%.o) | ||
50 | ALL_DEBUG := -g3 -gdwarf-2 | ||
51 | |||
52 | # ---------------------------------------------------------------------------- | ||
53 | # Compiler and Linker flags for Release | ||
54 | # ---------------------------------------------------------------------------- | ||
55 | OBJDIR_R := Release | ||
56 | BINDIR_R := $(OBJDIR_R) | ||
57 | LIBS_R := $(LIBS) | ||
58 | OBJS_R := $(SRCS:%.c=$(OBJDIR_R)/%.o) | ||
59 | ALL_RELEASE := -O3 | ||
60 | |||
61 | # ---------------------------------------------------------------------------- | ||
62 | # Compiler include directories | ||
63 | # ---------------------------------------------------------------------------- | ||
64 | INCLUDES := | ||
65 | |||
66 | # ---------------------------------------------------------------------------- | ||
67 | # All compiler options to be passed to the command line | ||
68 | # ---------------------------------------------------------------------------- | ||
69 | ALL_CFLAGS := $(INCLUDES) \ | ||
70 | -fmessage-length=0 \ | ||
71 | -c \ | ||
72 | $(CFLAGS) | ||
73 | |||
74 | LDFLAGS := -Wl,-O1 \ | ||
75 | -Wl,--hash-style=gnu \ | ||
76 | -lm | ||
77 | |||
78 | # ---------------------------------------------------------------------------- | ||
79 | # Compiler symbol definitions | ||
80 | # ---------------------------------------------------------------------------- | ||
81 | DEFS := -DUNROLL \ | ||
82 | -DSP | ||
83 | |||
84 | # ---------------------------------------------------------------------------- | ||
85 | # Compiler and Linker procedure | ||
86 | # From this point and on changes are very unlikely. | ||
87 | # ---------------------------------------------------------------------------- | ||
88 | .PHONY: all | ||
89 | all: debug release | ||
90 | |||
91 | # ---------------------------------------------------------------------------- | ||
92 | # Building Debug... | ||
93 | # ---------------------------------------------------------------------------- | ||
94 | .PHONY: debug | ||
95 | debug: $(BINDIR_D)/$(BIN) | ||
96 | |||
97 | $(BINDIR_D)/$(BIN): $(OBJS_D) | ||
98 | @echo Compiling Debug... | ||
99 | $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS) -Wl,-Map,$(BINDIR_D)/$(NAME).map | ||
100 | |||
101 | $(OBJDIR_D)/%.o : %.c $(HDRS) | ||
102 | @mkdir -p $(OBJDIR_D) | ||
103 | $(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $< | ||
104 | |||
105 | # ---------------------------------------------------------------------------- | ||
106 | # Building Release... | ||
107 | # ---------------------------------------------------------------------------- | ||
108 | .PHONY: release | ||
109 | release: $(BINDIR_R)/$(BIN) | ||
110 | |||
111 | $(BINDIR_R)/$(BIN): $(OBJS_R) | ||
112 | @echo Compiling Release... | ||
113 | $(CC) -o $@ $(OBJS_R) $(LIBS_R) $(LDFLAGS) -Wl,-Map,$(BINDIR_R)/$(NAME).map | ||
114 | |||
115 | $(OBJDIR_R)/%.o : %.c $(HDRS) | ||
116 | @mkdir -p $(OBJDIR_R) | ||
117 | $(CC) $(DEFS) $(ALL_RELEASE) $(ALL_CFLAGS) -o$@ $< | ||
118 | |||
119 | .PHONY: clean | ||
120 | clean: | ||
121 | @rm -rf $(OBJDIR_D) | ||
122 | @rm -rf $(OBJDIR_R) | ||
123 | |||
diff --git a/armv5te/scripts/runDhrystone b/armv5te/scripts/runDhrystone deleted file mode 100755 index 8649f6a..0000000 --- a/armv5te/scripts/runDhrystone +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # Module: runDhrystone | ||
3 | # | ||
4 | # Description: This script is used to list the memory partition information | ||
5 | # | ||
6 | # Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | # | ||
8 | # Redistribution and use in source and binary forms, with or withou | ||
9 | # modification, are permitted provided that the following conditions | ||
10 | # are met: | ||
11 | # | ||
12 | # Redistributions of source code must retain the above copyright | ||
13 | # notice, this list of conditions and the following disclaimer. | ||
14 | # | ||
15 | # Redistributions in binary form must reproduce the above copyright | ||
16 | # notice, this list of conditions and the following disclaimer in the | ||
17 | # documentation and/or other materials provided with the | ||
18 | # distribution. | ||
19 | # | ||
20 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
21 | # its contributors may be used to endorse or promote products derived | ||
22 | # from this software without specific prior written permission. | ||
23 | # | ||
24 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
25 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
26 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
27 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
28 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
29 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
30 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
31 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
32 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
33 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
34 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
35 | # | ||
36 | echo "" | ||
37 | echo "" | ||
38 | echo "" | ||
39 | echo "Dhrystone running ..." | ||
40 | echo "" | ||
41 | echo "Execution time 10 seconds or longer depending on your CPU clock speed" | ||
42 | if test -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq; then | ||
43 | CPUFREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` | ||
44 | else if test -e /proc/cpuinfo; then | ||
45 | a=`cat /proc/cpuinfo | grep Bogo | awk '{print $3}'` | ||
46 | b=`echo "($a+5)/10*10" | bc` | ||
47 | let CPUFREQ=b*1000 | ||
48 | fi | ||
49 | fi | ||
50 | dhrystone 6000000 $CPUFREQ | ||
51 | echo "" | ||
diff --git a/armv5te/scripts/runWhetstone b/armv5te/scripts/runWhetstone deleted file mode 100755 index fbb1319..0000000 --- a/armv5te/scripts/runWhetstone +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | # Module: runWhetstone | ||
2 | # | ||
3 | # Description: This script is used to list the memory partition information | ||
4 | # | ||
5 | # Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
6 | # | ||
7 | # Redistribution and use in source and binary forms, with or withou | ||
8 | # modification, are permitted provided that the following conditions | ||
9 | # are met: | ||
10 | # | ||
11 | # Redistributions of source code must retain the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer. | ||
13 | # | ||
14 | # Redistributions in binary form must reproduce the above copyright | ||
15 | # notice, this list of conditions and the following disclaimer in the | ||
16 | # documentation and/or other materials provided with the | ||
17 | # distribution. | ||
18 | # | ||
19 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
20 | # its contributors may be used to endorse or promote products derived | ||
21 | # from this software without specific prior written permission. | ||
22 | # | ||
23 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
24 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
25 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
26 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
27 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
28 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
29 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
30 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
31 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
32 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
33 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
34 | # | ||
35 | echo "" | ||
36 | echo "" | ||
37 | echo "" | ||
38 | echo "Whetstone running ..." | ||
39 | echo "" | ||
40 | echo "Execution time approx 10 seconds" | ||
41 | whetstone 2000 | ||
diff --git a/armv5te/whetstone/.cproject b/armv5te/whetstone/.cproject deleted file mode 100755 index b1fb4c7..0000000 --- a/armv5te/whetstone/.cproject +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="0.1937163180.1528112567"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1937163180.1528112567" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
11 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
16 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
17 | </extensions> | ||
18 | </storageModule> | ||
19 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
20 | <configuration buildProperties="" description="" id="0.1937163180.1528112567" name="Debug" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
21 | <folderInfo id="0.1937163180.1528112567." name="/" resourcePath=""> | ||
22 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.755445968" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
23 | <targetPlatform binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.build.core.prefbase.toolchain.755445968.1732956174" name=""/> | ||
24 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.354833019" incrementalBuildTarget="debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
25 | <outputEntries> | ||
26 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Debug"/> | ||
27 | </outputEntries> | ||
28 | </builder> | ||
29 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.1227938615" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
30 | <tool id="org.eclipse.cdt.build.core.settings.holder.490499861" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
31 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.465136854" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
32 | </tool> | ||
33 | <tool id="org.eclipse.cdt.build.core.settings.holder.1374084095" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
34 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1776678140" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
35 | </tool> | ||
36 | <tool id="org.eclipse.cdt.build.core.settings.holder.1041609736" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
37 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.708577412" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
38 | </tool> | ||
39 | <tool id="org.eclipse.cdt.build.core.settings.holder.1022804378" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.374711872" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
42 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
43 | </option> | ||
44 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1189007213" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
45 | </tool> | ||
46 | </toolChain> | ||
47 | </folderInfo> | ||
48 | </configuration> | ||
49 | </storageModule> | ||
50 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
51 | </cconfiguration> | ||
52 | <cconfiguration id="0.1937163180.964944288"> | ||
53 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1937163180.964944288" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
54 | <externalSettings/> | ||
55 | <extensions> | ||
56 | <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
57 | <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
58 | <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
59 | <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
60 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
61 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
62 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
63 | </extensions> | ||
64 | </storageModule> | ||
65 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
66 | <configuration artifactName="whetstone" buildProperties="" description="" id="0.1937163180.964944288" name="Release" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
67 | <folderInfo id="0.1937163180.964944288." name="/" resourcePath=""> | ||
68 | <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.310513104" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
69 | <targetPlatform binaryParser="org.eclipse.cdt.core.GNU_ELF" id="org.eclipse.cdt.build.core.prefbase.toolchain.310513104.651372467" name=""/> | ||
70 | <builder id="org.eclipse.cdt.build.core.settings.default.builder.1391216197" incrementalBuildTarget="release" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"> | ||
71 | <outputEntries> | ||
72 | <entry flags="VALUE_WORKSPACE_PATH" kind="outputPath" name="Release"/> | ||
73 | </outputEntries> | ||
74 | </builder> | ||
75 | <tool id="org.eclipse.cdt.build.core.settings.holder.libs.1640352872" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
76 | <tool id="org.eclipse.cdt.build.core.settings.holder.1653657643" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
77 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1785909678" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
78 | </tool> | ||
79 | <tool id="org.eclipse.cdt.build.core.settings.holder.244972652" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
80 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1260877103" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
81 | </tool> | ||
82 | <tool id="org.eclipse.cdt.build.core.settings.holder.2088217803" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
83 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.811216520" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
84 | </tool> | ||
85 | <tool id="org.eclipse.cdt.build.core.settings.holder.909221620" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
86 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1973163515" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | ||
87 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | ||
88 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | ||
89 | </option> | ||
90 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1284746893" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
91 | </tool> | ||
92 | </toolChain> | ||
93 | </folderInfo> | ||
94 | </configuration> | ||
95 | </storageModule> | ||
96 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
97 | </cconfiguration> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <project id="whetstone.null.542905282" name="whetstone"/> | ||
101 | </storageModule> | ||
102 | <storageModule moduleId="refreshScope" versionNumber="1"> | ||
103 | <resource resourceType="PROJECT" workspacePath="/whetstone"/> | ||
104 | </storageModule> | ||
105 | <storageModule moduleId="scannerConfiguration"> | ||
106 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
107 | <scannerConfigBuildInfo instanceId="0.1937163180.964944288"> | ||
108 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
109 | </scannerConfigBuildInfo> | ||
110 | <scannerConfigBuildInfo instanceId="0.1937163180.1528112567"> | ||
111 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
112 | </scannerConfigBuildInfo> | ||
113 | <scannerConfigBuildInfo instanceId="0.1937163180"> | ||
114 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
115 | </scannerConfigBuildInfo> | ||
116 | </storageModule> | ||
117 | </cproject> | ||
diff --git a/armv5te/whetstone/Makefile b/armv5te/whetstone/Makefile deleted file mode 100644 index 9ad7eaf..0000000 --- a/armv5te/whetstone/Makefile +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | # ---------------------------------------------------------------------------- | ||
2 | # @file Makefile | ||
3 | # | ||
4 | # @path | ||
5 | # | ||
6 | # @desc Makefile for whetstone (Debug and Release versions) | ||
7 | # | ||
8 | # @ver 1.10 | ||
9 | # ---------------------------------------------------------------------------- | ||
10 | # Copyright (c) Texas Instruments Incorporated 2002-2009 | ||
11 | # | ||
12 | # Use of this software is controlled by the terms and conditions found in the | ||
13 | # license agreement under which this software has been supplied or provided. | ||
14 | # | ||
15 | |||
16 | # ---------------------------------------------------------------------------- | ||
17 | # Included defined variables | ||
18 | # ---------------------------------------------------------------------------- | ||
19 | -include ../../../Rules.make | ||
20 | |||
21 | # ---------------------------------------------------------------------------- | ||
22 | # Variables passed in externally | ||
23 | # ---------------------------------------------------------------------------- | ||
24 | CFLAGS ?= -march=armv5te -mtune=arm926ej-s | ||
25 | CROSS_COMPILE ?= | ||
26 | |||
27 | # ---------------------------------------------------------------------------- | ||
28 | # Name of the Linux compiler | ||
29 | # ---------------------------------------------------------------------------- | ||
30 | CC := $(CROSS_COMPILE)gcc | ||
31 | |||
32 | # ---------------------------------------------------------------------------- | ||
33 | # General options, sources and libraries | ||
34 | # ---------------------------------------------------------------------------- | ||
35 | NAME := whetstone | ||
36 | SRCS := whetstone.c | ||
37 | HDRS := | ||
38 | OBJS := | ||
39 | DEBUG := | ||
40 | BIN := whetstone | ||
41 | |||
42 | |||
43 | # ---------------------------------------------------------------------------- | ||
44 | # Compiler and Linker flags for Debug | ||
45 | # ---------------------------------------------------------------------------- | ||
46 | OBJDIR_D := Debug | ||
47 | BINDIR_D := $(OBJDIR_D) | ||
48 | LIBS_D := $(LIBS) | ||
49 | OBJS_D := $(SRCS:%.c=$(OBJDIR_D)/%.o) | ||
50 | ALL_DEBUG := -g3 -gdwarf-2 | ||
51 | |||
52 | # ---------------------------------------------------------------------------- | ||
53 | # Compiler and Linker flags for Release | ||
54 | # ---------------------------------------------------------------------------- | ||
55 | OBJDIR_R := Release | ||
56 | BINDIR_R := $(OBJDIR_R) | ||
57 | LIBS_R := $(LIBS) | ||
58 | OBJS_R := $(SRCS:%.c=$(OBJDIR_R)/%.o) | ||
59 | ALL_RELEASE := -O3 | ||
60 | |||
61 | # ---------------------------------------------------------------------------- | ||
62 | # Compiler include directories | ||
63 | # ---------------------------------------------------------------------------- | ||
64 | INCLUDES := | ||
65 | |||
66 | # ---------------------------------------------------------------------------- | ||
67 | # All compiler options to be passed to the command line | ||
68 | # ---------------------------------------------------------------------------- | ||
69 | ALL_CFLAGS := $(INCLUDES) \ | ||
70 | -fmessage-length=0 \ | ||
71 | -Wall \ | ||
72 | -c \ | ||
73 | $(CFLAGS) | ||
74 | |||
75 | LDFLAGS := -Wl,-O1 \ | ||
76 | -Wl,--hash-style=gnu \ | ||
77 | -lm | ||
78 | |||
79 | # ---------------------------------------------------------------------------- | ||
80 | # Compiler symbol definitions | ||
81 | # ---------------------------------------------------------------------------- | ||
82 | DEFS := | ||
83 | |||
84 | # ---------------------------------------------------------------------------- | ||
85 | # Compiler and Linker procedure | ||
86 | # From this point and on changes are very unlikely. | ||
87 | # ---------------------------------------------------------------------------- | ||
88 | .PHONY: all | ||
89 | all: debug release | ||
90 | |||
91 | # ---------------------------------------------------------------------------- | ||
92 | # Building Debug... | ||
93 | # ---------------------------------------------------------------------------- | ||
94 | .PHONY: debug | ||
95 | debug: $(BINDIR_D)/$(BIN) | ||
96 | |||
97 | $(BINDIR_D)/$(BIN): $(OBJS_D) | ||
98 | @echo Compiling Debug... | ||
99 | $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS) -Wl,-Map,$(BINDIR_D)/$(NAME).map | ||
100 | |||
101 | $(OBJDIR_D)/%.o : %.c $(HDRS) | ||
102 | @mkdir -p $(OBJDIR_D) | ||
103 | $(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $< | ||
104 | |||
105 | # ---------------------------------------------------------------------------- | ||
106 | # Building Release... | ||
107 | # ---------------------------------------------------------------------------- | ||
108 | .PHONY: release | ||
109 | release: $(BINDIR_R)/$(BIN) | ||
110 | |||
111 | $(BINDIR_R)/$(BIN): $(OBJS_R) | ||
112 | @echo Compiling Release... | ||
113 | $(CC) -o $@ $(OBJS_R) $(LIBS_R) $(LDFLAGS) -Wl,-Map,$(BINDIR_R)/$(NAME).map | ||
114 | |||
115 | $(OBJDIR_R)/%.o : %.c $(HDRS) | ||
116 | @mkdir -p $(OBJDIR_R) | ||
117 | $(CC) $(DEFS) $(ALL_RELEASE) $(ALL_CFLAGS) -o$@ $< | ||
118 | |||
119 | .PHONY: clean | ||
120 | clean: | ||
121 | @rm -rf $(OBJDIR_D) | ||
122 | @rm -rf $(OBJDIR_R) | ||
123 | |||
diff --git a/armv7a/DIRS b/armv7a/DIRS deleted file mode 100644 index c70a574..0000000 --- a/armv7a/DIRS +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | DIRS := | ||
2 | |||
3 | DIRS := dhrystone | ||
4 | DIRS += whetstone | ||
5 | DIRS += linpack | ||
6 | |||
7 | DESTDIR ?= | ||
diff --git a/armv7a/Makefile b/armv7a/Makefile deleted file mode 100644 index 54cbe3c..0000000 --- a/armv7a/Makefile +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | -include DIRS | ||
2 | -include ../../Rules.make | ||
3 | |||
4 | all: debug release | ||
5 | |||
6 | debug: | ||
7 | for dir in $(DIRS); do \ | ||
8 | make -C $$dir debug; \ | ||
9 | done | ||
10 | |||
11 | release: | ||
12 | for dir in $(DIRS); do \ | ||
13 | make -C $$dir release; \ | ||
14 | done | ||
15 | |||
16 | clean: | ||
17 | for dir in $(DIRS); do \ | ||
18 | make -C $$dir clean; \ | ||
19 | done | ||
20 | |||
21 | install: | ||
22 | @install -d $(DESTDIR)/usr/bin | ||
23 | @if [ -e dhrystone/Release/dhrystone ] ; then \ | ||
24 | install dhrystone/Release/dhrystone $(DESTDIR)/usr/bin/ ; \ | ||
25 | echo "dhrystone release version installed."; \ | ||
26 | else \ | ||
27 | echo "dhrystone release version not built - nothing to install!"; \ | ||
28 | fi | ||
29 | @if [ -e whetstone/Release/whetstone ] ; then \ | ||
30 | install whetstone/Release/whetstone $(DESTDIR)/usr/bin/ ; \ | ||
31 | echo "whetstone release version installed."; \ | ||
32 | else \ | ||
33 | echo "whetstone release version not built - nothing to install!" ; \ | ||
34 | fi | ||
35 | @if [ -e linpack/Release/linpack ] ; then \ | ||
36 | install linpack/Release/linpack $(DESTDIR)/usr/bin/ ; \ | ||
37 | echo "linpack release version installed."; \ | ||
38 | else \ | ||
39 | echo "linpack release version not built - nothing to install!" ; \ | ||
40 | fi | ||
41 | @install scripts/* $(DESTDIR)/usr/bin | ||
42 | |||
43 | install_debug: | ||
44 | @install -d $(DESTDIR)/usr/bin | ||
45 | @if [ -e dhrystone/Debug/dhrystone ] ; then \ | ||
46 | install dhrystone/Debug/dhrystone $(DESTDIR)/usr/bin/ ; \ | ||
47 | echo "dhrystone debug version installed."; \ | ||
48 | echo "NOTE: DEBUG VERSION WILL NOT YIELD MEANINGFUL BENCHMARK RESULTS."; \ | ||
49 | else \ | ||
50 | echo "drhystone debug version not built - nothing to install!"; \ | ||
51 | fi | ||
52 | @if [ -e whetstone/Debug/whetstone ] ; then \ | ||
53 | install whetstone/Debug/whetstone $(DESTDIR)/usr/bin/ ; \ | ||
54 | echo "whetstone debug version installed."; \ | ||
55 | echo "NOTE: DEBUG VERSION WILL NOT YIELD MEANINGFUL BENCHMARK RESULTS."; \ | ||
56 | else \ | ||
57 | echo "whetstone debug version not built - nothing to install!" ; \ | ||
58 | fi | ||
59 | @if [ -e linpack/Debug/linpack ] ; then \ | ||
60 | install linpack/Debug/linpack $(DESTDIR)/usr/bin/ ; \ | ||
61 | echo "linpack debug version installed."; \ | ||
62 | echo "NOTE: DEBUG VERSION WILL NOT YIELD MEANINGFUL BENCHMARK RESULTS."; \ | ||
63 | else \ | ||
64 | echo "linpack debug version not built - nothing to install!" ; \ | ||
65 | fi | ||
66 | @install scripts/* $(DESTDIR)/usr/bin | ||
diff --git a/armv7a/dhrystone/.project b/armv7a/dhrystone/.project deleted file mode 100644 index f53bb2e..0000000 --- a/armv7a/dhrystone/.project +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>dhrystone</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <triggers>clean,full,incremental,</triggers> | ||
11 | <arguments> | ||
12 | <dictionary> | ||
13 | <key>?children?</key> | ||
14 | <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|\||</value> | ||
15 | </dictionary> | ||
16 | <dictionary> | ||
17 | <key>?name?</key> | ||
18 | <value></value> | ||
19 | </dictionary> | ||
20 | <dictionary> | ||
21 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
22 | <value>true</value> | ||
23 | </dictionary> | ||
24 | <dictionary> | ||
25 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
26 | <value>all</value> | ||
27 | </dictionary> | ||
28 | <dictionary> | ||
29 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
30 | <value></value> | ||
31 | </dictionary> | ||
32 | <dictionary> | ||
33 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
34 | <value>make</value> | ||
35 | </dictionary> | ||
36 | <dictionary> | ||
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
38 | <value>clean</value> | ||
39 | </dictionary> | ||
40 | <dictionary> | ||
41 | <key>org.eclipse.cdt.make.core.contents</key> | ||
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
43 | </dictionary> | ||
44 | <dictionary> | ||
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
46 | <value>false</value> | ||
47 | </dictionary> | ||
48 | <dictionary> | ||
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
50 | <value>true</value> | ||
51 | </dictionary> | ||
52 | <dictionary> | ||
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
54 | <value>true</value> | ||
55 | </dictionary> | ||
56 | <dictionary> | ||
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
58 | <value>release</value> | ||
59 | </dictionary> | ||
60 | <dictionary> | ||
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
62 | <value>true</value> | ||
63 | </dictionary> | ||
64 | <dictionary> | ||
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
66 | <value>true</value> | ||
67 | </dictionary> | ||
68 | </arguments> | ||
69 | </buildCommand> | ||
70 | <buildCommand> | ||
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
72 | <arguments> | ||
73 | </arguments> | ||
74 | </buildCommand> | ||
75 | </buildSpec> | ||
76 | <natures> | ||
77 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
78 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
79 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
80 | </natures> | ||
81 | </projectDescription> | ||
diff --git a/armv7a/dhrystone/dhry.h b/armv7a/dhrystone/dhry.h deleted file mode 100755 index f236e79..0000000 --- a/armv7a/dhrystone/dhry.h +++ /dev/null | |||
@@ -1,469 +0,0 @@ | |||
1 | /* | ||
2 | * {module name} DHRYSTONE | ||
3 | * | ||
4 | * {module description} | ||
5 | * | ||
6 | * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | * | ||
8 | * | ||
9 | * Redistribution and use in source and binary forms, with or without | ||
10 | * modification, are permitted provided that the following conditions | ||
11 | * are met: | ||
12 | * | ||
13 | * Redistributions of source code must retain the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer. | ||
15 | * | ||
16 | * Redistributions in binary form must reproduce the above copyright | ||
17 | * notice, this list of conditions and the following disclaimer in the | ||
18 | * documentation and/or other materials provided with the | ||
19 | * distribution. | ||
20 | * | ||
21 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
22 | * its contributors may be used to endorse or promote products derived | ||
23 | * from this software without specific prior written permission. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | */ | ||
38 | |||
39 | /* | ||
40 | **************************************************************************** | ||
41 | * | ||
42 | * "DHRYSTONE" Benchmark Program | ||
43 | * ----------------------------- | ||
44 | * | ||
45 | * Version: C, Version 2.1 | ||
46 | * | ||
47 | * File: dhry.h (part 1 of 3) | ||
48 | * | ||
49 | * Date: May 25, 1988 | ||
50 | * | ||
51 | * Author: Reinhold P. Weicker | ||
52 | * Siemens AG, E STE 35 | ||
53 | * Postfach 3240 | ||
54 | * 8520 Erlangen | ||
55 | * Germany (West) | ||
56 | * Phone: [xxx-49]-9131-7-20330 | ||
57 | * (8-17 Central European Time) | ||
58 | * Usenet: ..!mcvax!unido!estevax!weicker | ||
59 | * | ||
60 | * Original Version (in Ada) published in | ||
61 | * "Communications of the ACM" vol. 27., no. 10 (Oct. 1984), | ||
62 | * pp. 1013 - 1030, together with the statistics | ||
63 | * on which the distribution of statements etc. is based. | ||
64 | * | ||
65 | * In this C version, the following C library functions are used: | ||
66 | * - strcpy, strcmp (inside the measurement loop) | ||
67 | * - printf, scanf (outside the measurement loop) | ||
68 | * In addition, Berkeley UNIX system calls "times ()" or "time ()" | ||
69 | * are used for execution time measurement. For measurements | ||
70 | * on other systems, these calls have to be changed. | ||
71 | * | ||
72 | * Collection of Results: | ||
73 | * Reinhold Weicker (address see above) and | ||
74 | * | ||
75 | * Rick Richardson | ||
76 | * PC Research. Inc. | ||
77 | * 94 Apple Orchard Drive | ||
78 | * Tinton Falls, NJ 07724 | ||
79 | * Phone: (201) 389-8963 (9-17 EST) | ||
80 | * Usenet: ...!uunet!pcrat!rick | ||
81 | * | ||
82 | * Please send results to Rick Richardson and/or Reinhold Weicker. | ||
83 | * Complete information should be given on hardware and software used. | ||
84 | * Hardware information includes: Machine type, CPU, type and size | ||
85 | * of caches; for microprocessors: clock frequency, memory speed | ||
86 | * (number of wait states). | ||
87 | * Software information includes: Compiler (and runtime library) | ||
88 | * manufacturer and version, compilation switches, OS version. | ||
89 | * The Operating System version may give an indication about the | ||
90 | * compiler; Dhrystone itself performs no OS calls in the measurement loop. | ||
91 | * | ||
92 | * The complete output generated by the program should be mailed | ||
93 | * such that at least some checks for correctness can be made. | ||
94 | * | ||
95 | *************************************************************************** | ||
96 | * | ||
97 | * History: This version C/2.1 has been made for two reasons: | ||
98 | * | ||
99 | * 1) There is an obvious need for a common C version of | ||
100 | * Dhrystone, since C is at present the most popular system | ||
101 | * programming language for the class of processors | ||
102 | * (microcomputers, minicomputers) where Dhrystone is used most. | ||
103 | * There should be, as far as possible, only one C version of | ||
104 | * Dhrystone such that results can be compared without | ||
105 | * restrictions. In the past, the C versions distributed | ||
106 | * by Rick Richardson (Version 1.1) and by Reinhold Weicker | ||
107 | * had small (though not significant) differences. | ||
108 | * | ||
109 | * 2) As far as it is possible without changes to the Dhrystone | ||
110 | * statistics, optimizing compilers should be prevented from | ||
111 | * removing significant statements. | ||
112 | * | ||
113 | * This C version has been developed in cooperation with | ||
114 | * Rick Richardson (Tinton Falls, NJ), it incorporates many | ||
115 | * ideas from the "Version 1.1" distributed previously by | ||
116 | * him over the UNIX network Usenet. | ||
117 | * I also thank Chaim Benedelac (National Semiconductor), | ||
118 | * David Ditzel (SUN), Earl Killian and John Mashey (MIPS), | ||
119 | * Alan Smith and Rafael Saavedra-Barrera (UC at Berkeley) | ||
120 | * for their help with comments on earlier versions of the | ||
121 | * benchmark. | ||
122 | * | ||
123 | * Changes: In the initialization part, this version follows mostly | ||
124 | * Rick Richardson's version distributed via Usenet, not the | ||
125 | * version distributed earlier via floppy disk by Reinhold Weicker. | ||
126 | * As a concession to older compilers, names have been made | ||
127 | * unique within the first 8 characters. | ||
128 | * Inside the measurement loop, this version follows the | ||
129 | * version previously distributed by Reinhold Weicker. | ||
130 | * | ||
131 | * At several places in the benchmark, code has been added, | ||
132 | * but within the measurement loop only in branches that | ||
133 | * are not executed. The intention is that optimizing compilers | ||
134 | * should be prevented from moving code out of the measurement | ||
135 | * loop, or from removing code altogether. Since the statements | ||
136 | * that are executed within the measurement loop have NOT been | ||
137 | * changed, the numbers defining the "Dhrystone distribution" | ||
138 | * (distribution of statements, operand types and locality) | ||
139 | * still hold. Except for sophisticated optimizing compilers, | ||
140 | * execution times for this version should be the same as | ||
141 | * for previous versions. | ||
142 | * | ||
143 | * Since it has proven difficult to subtract the time for the | ||
144 | * measurement loop overhead in a correct way, the loop check | ||
145 | * has been made a part of the benchmark. This does have | ||
146 | * an impact - though a very minor one - on the distribution | ||
147 | * statistics which have been updated for this version. | ||
148 | * | ||
149 | * All changes within the measurement loop are described | ||
150 | * and discussed in the companion paper "Rationale for | ||
151 | * Dhrystone version 2". | ||
152 | * | ||
153 | * Because of the self-imposed limitation that the order and | ||
154 | * distribution of the executed statements should not be | ||
155 | * changed, there are still cases where optimizing compilers | ||
156 | * may not generate code for some statements. To a certain | ||
157 | * degree, this is unavoidable for small synthetic benchmarks. | ||
158 | * Users of the benchmark are advised to check code listings | ||
159 | * whether code is generated for all statements of Dhrystone. | ||
160 | * | ||
161 | * Version 2.1 is identical to version 2.0 distributed via | ||
162 | * the UNIX network Usenet in March 1988 except that it corrects | ||
163 | * some minor deficiencies that were found by users of version 2.0. | ||
164 | * The only change within the measurement loop is that a | ||
165 | * non-executed "else" part was added to the "if" statement in | ||
166 | * Func_3, and a non-executed "else" part removed from Proc_3. | ||
167 | * | ||
168 | *************************************************************************** | ||
169 | * | ||
170 | * Defines: The following "Defines" are possible: | ||
171 | * -DREG=register (default: Not defined) | ||
172 | * As an approximation to what an average C programmer | ||
173 | * might do, the "register" storage class is applied | ||
174 | * (if enabled by -DREG=register) | ||
175 | * - for local variables, if they are used (dynamically) | ||
176 | * five or more times | ||
177 | * - for parameters if they are used (dynamically) | ||
178 | * six or more times | ||
179 | * Note that an optimal "register" strategy is | ||
180 | * compiler-dependent, and that "register" declarations | ||
181 | * do not necessarily lead to faster execution. | ||
182 | * -DNOSTRUCTASSIGN (default: Not defined) | ||
183 | * Define if the C compiler does not support | ||
184 | * assignment of structures. | ||
185 | * -DNOENUMS (default: Not defined) | ||
186 | * Define if the C compiler does not support | ||
187 | * enumeration types. | ||
188 | * -DTIMES (default) | ||
189 | * -DTIME | ||
190 | * The "times" function of UNIX (returning process times) | ||
191 | * or the "time" function (returning wallclock time) | ||
192 | * is used for measurement. | ||
193 | * For single user machines, "time ()" is adequate. For | ||
194 | * multi-user machines where you cannot get single-user | ||
195 | * access, use the "times ()" function. If you have | ||
196 | * neither, use a stopwatch in the dead of night. | ||
197 | * "printf"s are provided marking the points "Start Timer" | ||
198 | * and "Stop Timer". DO NOT use the UNIX "time(1)" | ||
199 | * command, as this will measure the total time to | ||
200 | * run this program, which will (erroneously) include | ||
201 | * the time to allocate storage (malloc) and to perform | ||
202 | * the initialization. | ||
203 | * -DHZ=nnn | ||
204 | * In Berkeley UNIX, the function "times" returns process | ||
205 | * time in 1/HZ seconds, with HZ = 60 for most systems. | ||
206 | * CHECK YOUR SYSTEM DESCRIPTION BEFORE YOU JUST APPLY | ||
207 | * A VALUE. | ||
208 | * | ||
209 | *************************************************************************** | ||
210 | * | ||
211 | * Compilation model and measurement (IMPORTANT): | ||
212 | * | ||
213 | * This C version of Dhrystone consists of three files: | ||
214 | * - dhry.h (this file, containing global definitions and comments) | ||
215 | * - dhry_1.c (containing the code corresponding to Ada package Pack_1) | ||
216 | * - dhry_2.c (containing the code corresponding to Ada package Pack_2) | ||
217 | * | ||
218 | * The following "ground rules" apply for measurements: | ||
219 | * - Separate compilation | ||
220 | * - No procedure merging | ||
221 | * - Otherwise, compiler optimizations are allowed but should be indicated | ||
222 | * - Default results are those without register declarations | ||
223 | * See the companion paper "Rationale for Dhrystone Version 2" for a more | ||
224 | * detailed discussion of these ground rules. | ||
225 | * | ||
226 | * For 16-Bit processors (e.g. 80186, 80286), times for all compilation | ||
227 | * models ("small", "medium", "large" etc.) should be given if possible, | ||
228 | * together with a definition of these models for the compiler system used. | ||
229 | * | ||
230 | ************************************************************************** | ||
231 | * | ||
232 | * Dhrystone (C version) statistics: | ||
233 | * | ||
234 | * [Comment from the first distribution, updated for version 2. | ||
235 | * Note that because of language differences, the numbers are slightly | ||
236 | * different from the Ada version.] | ||
237 | * | ||
238 | * The following program contains statements of a high level programming | ||
239 | * language (here: C) in a distribution considered representative: | ||
240 | * | ||
241 | * assignments 52 (51.0 %) | ||
242 | * control statements 33 (32.4 %) | ||
243 | * procedure, function calls 17 (16.7 %) | ||
244 | * | ||
245 | * 103 statements are dynamically executed. The program is balanced with | ||
246 | * respect to the three aspects: | ||
247 | * | ||
248 | * - statement type | ||
249 | * - operand type | ||
250 | * - operand locality | ||
251 | * operand global, local, parameter, or constant. | ||
252 | * | ||
253 | * The combination of these three aspects is balanced only approximately. | ||
254 | * | ||
255 | * 1. Statement Type: | ||
256 | * ----------------- number | ||
257 | * | ||
258 | * V1 = V2 9 | ||
259 | * (incl. V1 = F(..) | ||
260 | * V = Constant 12 | ||
261 | * Assignment, 7 | ||
262 | * with array element | ||
263 | * Assignment, 6 | ||
264 | * with record component | ||
265 | * -- | ||
266 | * 34 34 | ||
267 | * | ||
268 | * X = Y +|-|"&&"|"|" Z 5 | ||
269 | * X = Y +|-|"==" Constant 6 | ||
270 | * X = X +|- 1 3 | ||
271 | * X = Y *|/ Z 2 | ||
272 | * X = Expression, 1 | ||
273 | * two operators | ||
274 | * X = Expression, 1 | ||
275 | * three operators | ||
276 | * -- | ||
277 | * 18 18 | ||
278 | * | ||
279 | * if .... 14 | ||
280 | * with "else" 7 | ||
281 | * without "else" 7 | ||
282 | * executed 3 | ||
283 | * not executed 4 | ||
284 | * for ... 7 | counted every time | ||
285 | * while ... 4 | the loop condition | ||
286 | * do ... while 1 | is evaluated | ||
287 | * switch ... 1 | ||
288 | * break 1 | ||
289 | * declaration with 1 | ||
290 | * initialization | ||
291 | * -- | ||
292 | * 34 34 | ||
293 | * | ||
294 | * P (...) procedure call 11 | ||
295 | * user procedure 10 | ||
296 | * library procedure 1 | ||
297 | * X = F (...) | ||
298 | * function call 6 | ||
299 | * user function 5 | ||
300 | * library function 1 | ||
301 | * -- | ||
302 | * 17 17 | ||
303 | * --- | ||
304 | * 103 | ||
305 | * | ||
306 | * The average number of parameters in procedure or function calls | ||
307 | * is 1.82 (not counting the function values aX * | ||
308 | * | ||
309 | * 2. Operators | ||
310 | * ------------ | ||
311 | * number approximate | ||
312 | * percentage | ||
313 | * | ||
314 | * Arithmetic 32 50.8 | ||
315 | * | ||
316 | * + 21 33.3 | ||
317 | * - 7 11.1 | ||
318 | * * 3 4.8 | ||
319 | * / (int div) 1 1.6 | ||
320 | * | ||
321 | * Comparison 27 42.8 | ||
322 | * | ||
323 | * == 9 14.3 | ||
324 | * /= 4 6.3 | ||
325 | * > 1 1.6 | ||
326 | * < 3 4.8 | ||
327 | * >= 1 1.6 | ||
328 | * <= 9 14.3 | ||
329 | * | ||
330 | * Logic 4 6.3 | ||
331 | * | ||
332 | * && (AND-THEN) 1 1.6 | ||
333 | * | (OR) 1 1.6 | ||
334 | * ! (NOT) 2 3.2 | ||
335 | * | ||
336 | * -- ----- | ||
337 | * 63 100.1 | ||
338 | * | ||
339 | * | ||
340 | * 3. Operand Type (counted once per operand reference): | ||
341 | * --------------- | ||
342 | * number approximate | ||
343 | * percentage | ||
344 | * | ||
345 | * Integer 175 72.3 % | ||
346 | * Character 45 18.6 % | ||
347 | * Pointer 12 5.0 % | ||
348 | * String30 6 2.5 % | ||
349 | * Array 2 0.8 % | ||
350 | * Record 2 0.8 % | ||
351 | * --- ------- | ||
352 | * 242 100.0 % | ||
353 | * | ||
354 | * When there is an access path leading to the final operand (e.g. a record | ||
355 | * component), only the final data type on the access path is counted. | ||
356 | * | ||
357 | * | ||
358 | * 4. Operand Locality: | ||
359 | * ------------------- | ||
360 | * number approximate | ||
361 | * percentage | ||
362 | * | ||
363 | * local variable 114 47.1 % | ||
364 | * global variable 22 9.1 % | ||
365 | * parameter 45 18.6 % | ||
366 | * value 23 9.5 % | ||
367 | * reference 22 9.1 % | ||
368 | * function result 6 2.5 % | ||
369 | * constant 55 22.7 % | ||
370 | * --- ------- | ||
371 | * 242 100.0 % | ||
372 | * | ||
373 | * | ||
374 | * The program does not compute anything meaningful, but it is syntactically | ||
375 | * and semantically correct. All variables have a value assigned to them | ||
376 | * before they are used as a source operand. | ||
377 | * | ||
378 | * There has been no explicit effort to account for the effects of a | ||
379 | * cache, or to balance the use of long or short displacements for code or | ||
380 | * data. | ||
381 | * | ||
382 | *************************************************************************** | ||
383 | */ | ||
384 | |||
385 | /* Compiler and system dependent definitions: */ | ||
386 | |||
387 | #ifndef TIME | ||
388 | #undef TIMES | ||
389 | #define TIMES | ||
390 | #endif | ||
391 | /* Use times(2) time function unless */ | ||
392 | /* explicitly defined otherwise */ | ||
393 | |||
394 | #ifdef MSC_CLOCK | ||
395 | #undef HZ | ||
396 | #undef TIMES | ||
397 | #include <time.h> | ||
398 | #define HZ CLK_TCK | ||
399 | #endif | ||
400 | /* Use Microsoft C hi-res clock */ | ||
401 | |||
402 | #ifdef TIMES | ||
403 | #include <sys/types.h> | ||
404 | #include <sys/times.h> | ||
405 | /* for "times" */ | ||
406 | #endif | ||
407 | |||
408 | #define Mic_secs_Per_Second 1000000.0 | ||
409 | /* Berkeley UNIX C returns process times in seconds/HZ */ | ||
410 | |||
411 | #ifdef NOSTRUCTASSIGN | ||
412 | #define structassign(d, s) memcpy(&(d), &(s), sizeof(d)) | ||
413 | #else | ||
414 | #define structassign(d, s) d = s | ||
415 | #endif | ||
416 | |||
417 | #ifdef NOENUM | ||
418 | #define Ident_1 0 | ||
419 | #define Ident_2 1 | ||
420 | #define Ident_3 2 | ||
421 | #define Ident_4 3 | ||
422 | #define Ident_5 4 | ||
423 | typedef int Enumeration; | ||
424 | #else | ||
425 | typedef enum {Ident_1, Ident_2, Ident_3, Ident_4, Ident_5} | ||
426 | Enumeration; | ||
427 | #endif | ||
428 | /* for boolean and enumeration types in Ada, Pascal */ | ||
429 | |||
430 | /* General definitions: */ | ||
431 | |||
432 | #include <stdio.h> | ||
433 | /* for strcpy, strcmp */ | ||
434 | |||
435 | #define Null 0 | ||
436 | /* Value of a Null pointer */ | ||
437 | #define true 1 | ||
438 | #define false 0 | ||
439 | |||
440 | typedef int One_Thirty; | ||
441 | typedef int One_Fifty; | ||
442 | typedef char Capital_Letter; | ||
443 | typedef int Boolean; | ||
444 | typedef char Str_30 [31]; | ||
445 | typedef int Arr_1_Dim [50]; | ||
446 | typedef int Arr_2_Dim [50] [50]; | ||
447 | |||
448 | typedef struct record | ||
449 | { | ||
450 | struct record *Ptr_Comp; | ||
451 | Enumeration Discr; | ||
452 | union { | ||
453 | struct { | ||
454 | Enumeration Enum_Comp; | ||
455 | int Int_Comp; | ||
456 | char Str_Comp [31]; | ||
457 | } var_1; | ||
458 | struct { | ||
459 | Enumeration E_Comp_2; | ||
460 | char Str_2_Comp [31]; | ||
461 | } var_2; | ||
462 | struct { | ||
463 | char Ch_1_Comp; | ||
464 | char Ch_2_Comp; | ||
465 | } var_3; | ||
466 | } variant; | ||
467 | } Rec_Type, *Rec_Pointer; | ||
468 | |||
469 | |||
diff --git a/armv7a/dhrystone/dhry_1.c b/armv7a/dhrystone/dhry_1.c deleted file mode 100644 index 49c23cb..0000000 --- a/armv7a/dhrystone/dhry_1.c +++ /dev/null | |||
@@ -1,454 +0,0 @@ | |||
1 | /* | ||
2 | * {module name} DHRYSTONE | ||
3 | * | ||
4 | * {module description} | ||
5 | * | ||
6 | * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | * | ||
8 | * | ||
9 | * Redistribution and use in source and binary forms, with or without | ||
10 | * modification, are permitted provided that the following conditions | ||
11 | * are met: | ||
12 | * | ||
13 | * Redistributions of source code must retain the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer. | ||
15 | * | ||
16 | * Redistributions in binary form must reproduce the above copyright | ||
17 | * notice, this list of conditions and the following disclaimer in the | ||
18 | * documentation and/or other materials provided with the | ||
19 | * distribution. | ||
20 | * | ||
21 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
22 | * its contributors may be used to endorse or promote products derived | ||
23 | * from this software without specific prior written permission. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | */ | ||
38 | |||
39 | /* | ||
40 | **************************************************************************** | ||
41 | * | ||
42 | * "DHRYSTONE" Benchmark Program | ||
43 | * ----------------------------- | ||
44 | * | ||
45 | * Version: C, Version 2.1 | ||
46 | * | ||
47 | * File: dhry_1.c (part 2 of 3) | ||
48 | * | ||
49 | * Date: May 25, 1988 | ||
50 | * | ||
51 | * Author: Reinhold P. Weicker | ||
52 | * | ||
53 | **************************************************************************** | ||
54 | */ | ||
55 | |||
56 | #include "dhry.h" | ||
57 | |||
58 | /* Global Variables: */ | ||
59 | |||
60 | Rec_Pointer Ptr_Glob, | ||
61 | Next_Ptr_Glob; | ||
62 | int Int_Glob; | ||
63 | Boolean Bool_Glob; | ||
64 | char Ch_1_Glob, | ||
65 | Ch_2_Glob; | ||
66 | int Arr_1_Glob [50]; | ||
67 | int Arr_2_Glob [50] [50]; | ||
68 | |||
69 | extern char *malloc (size_t size); | ||
70 | extern char *strcpy (char *destination, const char *source); | ||
71 | |||
72 | Enumeration Func_1 (); | ||
73 | /* forward declaration necessary since Enumeration may not simply be int */ | ||
74 | |||
75 | #ifndef REG | ||
76 | Boolean Reg = false; | ||
77 | #define REG | ||
78 | /* REG becomes defined as empty */ | ||
79 | /* i.e. no register variables */ | ||
80 | #else | ||
81 | Boolean Reg = true; | ||
82 | #endif | ||
83 | |||
84 | /* variables for time measurement: */ | ||
85 | |||
86 | #ifdef TIMES | ||
87 | struct tms time_info; | ||
88 | extern int times (); | ||
89 | /* see library function "times" */ | ||
90 | #define Too_Small_Time (2*HZ) | ||
91 | /* Measurements should last at least about 2 seconds */ | ||
92 | #endif | ||
93 | #ifdef TIME | ||
94 | extern long time(); | ||
95 | /* see library function "time" */ | ||
96 | #define Too_Small_Time 2 | ||
97 | /* Measurements should last at least 2 seconds */ | ||
98 | #endif | ||
99 | #ifdef MSC_CLOCK | ||
100 | extern clock_t clock(); | ||
101 | #define Too_Small_Time (2*HZ) | ||
102 | #endif | ||
103 | |||
104 | long Begin_Time, | ||
105 | End_Time, | ||
106 | User_Time; | ||
107 | float Microseconds, | ||
108 | Dhrystones_Per_Second; | ||
109 | |||
110 | int i; | ||
111 | int CpuFreq=0; // in KHz | ||
112 | /* end of variables for time measurement */ | ||
113 | |||
114 | |||
115 | main (int argc, char **argv) | ||
116 | /*****/ | ||
117 | |||
118 | /* main program, corresponds to procedures */ | ||
119 | /* Main and Proc_0 in the Ada version */ | ||
120 | { | ||
121 | One_Fifty Int_1_Loc; | ||
122 | REG One_Fifty Int_2_Loc; | ||
123 | One_Fifty Int_3_Loc; | ||
124 | REG char Ch_Index; | ||
125 | Enumeration Enum_Loc; | ||
126 | Str_30 Str_1_Loc; | ||
127 | Str_30 Str_2_Loc; | ||
128 | REG int Run_Index; | ||
129 | REG int Number_Of_Runs; | ||
130 | |||
131 | /* Initializations */ | ||
132 | |||
133 | Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type)); | ||
134 | Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type)); | ||
135 | |||
136 | Ptr_Glob->Ptr_Comp = Next_Ptr_Glob; | ||
137 | Ptr_Glob->Discr = Ident_1; | ||
138 | Ptr_Glob->variant.var_1.Enum_Comp = Ident_3; | ||
139 | Ptr_Glob->variant.var_1.Int_Comp = 40; | ||
140 | strcpy (Ptr_Glob->variant.var_1.Str_Comp, | ||
141 | "DHRYSTONE PROGRAM, SOME STRING"); | ||
142 | strcpy (Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING"); | ||
143 | |||
144 | Arr_2_Glob [8][7] = 10; | ||
145 | /* Was missing in published program. Without this statement, */ | ||
146 | /* Arr_2_Glob [8][7] would have an undefined value. */ | ||
147 | /* Warning: With 16-Bit processors and Number_Of_Runs > 32000, */ | ||
148 | /* overflow may occur for this array element. */ | ||
149 | |||
150 | printf ("\n"); | ||
151 | printf ("Dhrystone Benchmark, Version 2.1 (Language: C)\n"); | ||
152 | printf ("\n"); | ||
153 | if (Reg) | ||
154 | { | ||
155 | printf ("Program compiled with 'register' attribute\n"); | ||
156 | printf ("\n"); | ||
157 | } | ||
158 | else | ||
159 | { | ||
160 | printf ("Program compiled without 'register' attribute\n"); | ||
161 | printf ("\n"); | ||
162 | } | ||
163 | if(argc == 1) | ||
164 | { | ||
165 | printf ("Please give the number of runs through the benchmark: "); | ||
166 | { | ||
167 | int n; | ||
168 | scanf ("%d", &n); | ||
169 | Number_Of_Runs = n; | ||
170 | } | ||
171 | } | ||
172 | else | ||
173 | { | ||
174 | Number_Of_Runs = atoi(argv[1]); | ||
175 | printf("number of runs = %d",Number_Of_Runs); | ||
176 | } | ||
177 | if(argc == 3) | ||
178 | { | ||
179 | CpuFreq = atoi(argv[2])/1000; | ||
180 | } | ||
181 | |||
182 | printf ("\n"); | ||
183 | |||
184 | printf ("Execution starts, %d runs through Dhrystone\n", Number_Of_Runs); | ||
185 | |||
186 | /***************/ | ||
187 | /* Start timer */ | ||
188 | /***************/ | ||
189 | |||
190 | #ifdef TIMES | ||
191 | times (&time_info); | ||
192 | Begin_Time = (long) time_info.tms_utime; | ||
193 | #endif | ||
194 | #ifdef TIME | ||
195 | Begin_Time = time ( (long *) 0); | ||
196 | #endif | ||
197 | #ifdef MSC_CLOCK | ||
198 | Begin_Time = clock(); | ||
199 | #endif | ||
200 | for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index) | ||
201 | { | ||
202 | |||
203 | Proc_5(); | ||
204 | Proc_4(); | ||
205 | /* Ch_1_Glob == 'A', Ch_2_Glob == 'B', Bool_Glob == true */ | ||
206 | Int_1_Loc = 2; | ||
207 | Int_2_Loc = 3; | ||
208 | strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING"); | ||
209 | Enum_Loc = Ident_2; | ||
210 | Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc); | ||
211 | /* Bool_Glob == 1 */ | ||
212 | while (Int_1_Loc < Int_2_Loc) /* loop body executed once */ | ||
213 | { | ||
214 | Int_3_Loc = 5 * Int_1_Loc - Int_2_Loc; | ||
215 | /* Int_3_Loc == 7 */ | ||
216 | Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc); | ||
217 | /* Int_3_Loc == 7 */ | ||
218 | Int_1_Loc += 1; | ||
219 | } /* while */ | ||
220 | /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */ | ||
221 | Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc); | ||
222 | /* Int_Glob == 5 */ | ||
223 | Proc_1 (Ptr_Glob); | ||
224 | for (Ch_Index = 'A'; Ch_Index <= Ch_2_Glob; ++Ch_Index) | ||
225 | /* loop body executed twice */ | ||
226 | { | ||
227 | if (Enum_Loc == Func_1 (Ch_Index, 'C')) | ||
228 | /* then, not executed */ | ||
229 | { | ||
230 | Proc_6 (Ident_1, &Enum_Loc); | ||
231 | strcpy (Str_2_Loc, "DHRYSTONE PROGRAM, 3'RD STRING"); | ||
232 | Int_2_Loc = Run_Index; | ||
233 | Int_Glob = Run_Index; | ||
234 | } | ||
235 | } | ||
236 | /* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */ | ||
237 | Int_2_Loc = Int_2_Loc * Int_1_Loc; | ||
238 | Int_1_Loc = Int_2_Loc / Int_3_Loc; | ||
239 | Int_2_Loc = 7 * (Int_2_Loc - Int_3_Loc) - Int_1_Loc; | ||
240 | /* Int_1_Loc == 1, Int_2_Loc == 13, Int_3_Loc == 7 */ | ||
241 | Proc_2 (&Int_1_Loc); | ||
242 | /* Int_1_Loc == 5 */ | ||
243 | |||
244 | } /* loop "for Run_Index" */ | ||
245 | |||
246 | /**************/ | ||
247 | /* Stop timer */ | ||
248 | /**************/ | ||
249 | |||
250 | #ifdef TIMES | ||
251 | times (&time_info); | ||
252 | End_Time = (long) time_info.tms_utime; | ||
253 | #endif | ||
254 | #ifdef TIME | ||
255 | End_Time = time ( (long *) 0); | ||
256 | #endif | ||
257 | #ifdef MSC_CLOCK | ||
258 | End_Time = clock(); | ||
259 | #endif | ||
260 | |||
261 | printf ("Execution ends\n"); | ||
262 | printf ("\n"); | ||
263 | printf ("Final values of the variables used in the benchmark:\n"); | ||
264 | printf ("\n"); | ||
265 | printf ("Int_Glob: %d\n", Int_Glob); | ||
266 | printf (" should be: %d\n", 5); | ||
267 | printf ("Bool_Glob: %d\n", Bool_Glob); | ||
268 | printf (" should be: %d\n", 1); | ||
269 | printf ("Ch_1_Glob: %c\n", Ch_1_Glob); | ||
270 | printf (" should be: %c\n", 'A'); | ||
271 | printf ("Ch_2_Glob: %c\n", Ch_2_Glob); | ||
272 | printf (" should be: %c\n", 'B'); | ||
273 | printf ("Arr_1_Glob[8]: %d\n", Arr_1_Glob[8]); | ||
274 | printf (" should be: %d\n", 7); | ||
275 | printf ("Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]); | ||
276 | printf (" should be: Number_Of_Runs + 10\n"); | ||
277 | printf ("Ptr_Glob->\n"); | ||
278 | printf (" Ptr_Comp: %d\n", (int) Ptr_Glob->Ptr_Comp); | ||
279 | printf (" should be: (implementation-dependent)\n"); | ||
280 | printf (" Discr: %d\n", Ptr_Glob->Discr); | ||
281 | printf (" should be: %d\n", 0); | ||
282 | printf (" Enum_Comp: %d\n", Ptr_Glob->variant.var_1.Enum_Comp); | ||
283 | printf (" should be: %d\n", 2); | ||
284 | printf (" Int_Comp: %d\n", Ptr_Glob->variant.var_1.Int_Comp); | ||
285 | printf (" should be: %d\n", 17); | ||
286 | printf (" Str_Comp: %s\n", Ptr_Glob->variant.var_1.Str_Comp); | ||
287 | printf (" should be: DHRYSTONE PROGRAM, SOME STRING\n"); | ||
288 | printf ("Next_Ptr_Glob->\n"); | ||
289 | printf (" Ptr_Comp: %d\n", (int) Next_Ptr_Glob->Ptr_Comp); | ||
290 | printf (" should be: (implementation-dependent), same as above\n"); | ||
291 | printf (" Discr: %d\n", Next_Ptr_Glob->Discr); | ||
292 | printf (" should be: %d\n", 0); | ||
293 | printf (" Enum_Comp: %d\n", Next_Ptr_Glob->variant.var_1.Enum_Comp); | ||
294 | printf (" should be: %d\n", 1); | ||
295 | printf (" Int_Comp: %d\n", Next_Ptr_Glob->variant.var_1.Int_Comp); | ||
296 | printf (" should be: %d\n", 18); | ||
297 | printf (" Str_Comp: %s\n", | ||
298 | Next_Ptr_Glob->variant.var_1.Str_Comp); | ||
299 | printf (" should be: DHRYSTONE PROGRAM, SOME STRING\n"); | ||
300 | printf ("Int_1_Loc: %d\n", Int_1_Loc); | ||
301 | printf (" should be: %d\n", 5); | ||
302 | printf ("Int_2_Loc: %d\n", Int_2_Loc); | ||
303 | printf (" should be: %d\n", 13); | ||
304 | printf ("Int_3_Loc: %d\n", Int_3_Loc); | ||
305 | printf (" should be: %d\n", 7); | ||
306 | printf ("Enum_Loc: %d\n", Enum_Loc); | ||
307 | printf (" should be: %d\n", 1); | ||
308 | printf ("Str_1_Loc: %s\n", Str_1_Loc); | ||
309 | printf (" should be: DHRYSTONE PROGRAM, 1'ST STRING\n"); | ||
310 | printf ("Str_2_Loc: %s\n", Str_2_Loc); | ||
311 | printf (" should be: DHRYSTONE PROGRAM, 2'ND STRING\n"); | ||
312 | printf ("\n"); | ||
313 | |||
314 | User_Time = End_Time - Begin_Time; | ||
315 | |||
316 | if (User_Time < Too_Small_Time) | ||
317 | { | ||
318 | printf ("Measured time too small to obtain meaningful results\n"); | ||
319 | printf ("Please increase number of runs\n"); | ||
320 | printf ("\n"); | ||
321 | } | ||
322 | else | ||
323 | { | ||
324 | #ifdef TIME | ||
325 | Microseconds = (float) User_Time * Mic_secs_Per_Second | ||
326 | / (float) Number_Of_Runs; | ||
327 | Dhrystones_Per_Second = (float) Number_Of_Runs / (float) User_Time; | ||
328 | #else | ||
329 | Microseconds = (float) User_Time * Mic_secs_Per_Second | ||
330 | / ((float) HZ * ((float) Number_Of_Runs)); | ||
331 | Dhrystones_Per_Second = ((float) HZ * (float) Number_Of_Runs) | ||
332 | / (float) User_Time; | ||
333 | #endif | ||
334 | printf ("Microseconds for one run through Dhrystone: "); | ||
335 | printf ("%6.1f \n", Microseconds); | ||
336 | printf ("Dhrystones per Second: "); | ||
337 | printf ("%6.1f \n", Dhrystones_Per_Second); | ||
338 | printf ("\n"); | ||
339 | if(CpuFreq !=0) | ||
340 | { | ||
341 | printf ("CPU clock = %d MHz\n", CpuFreq); | ||
342 | printf ("Dhrystone DMIPS/MHz = %6.1f\n", (float)Dhrystones_Per_Second / (float)1757 / (float) CpuFreq); | ||
343 | } | ||
344 | } | ||
345 | |||
346 | } | ||
347 | |||
348 | |||
349 | Proc_1 (Ptr_Val_Par) | ||
350 | /******************/ | ||
351 | |||
352 | REG Rec_Pointer Ptr_Val_Par; | ||
353 | /* executed once */ | ||
354 | { | ||
355 | REG Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp; | ||
356 | /* == Ptr_Glob_Next */ | ||
357 | /* Local variable, initialized with Ptr_Val_Par->Ptr_Comp, */ | ||
358 | /* corresponds to "rename" in Ada, "with" in Pascal */ | ||
359 | |||
360 | structassign (*Ptr_Val_Par->Ptr_Comp, *Ptr_Glob); | ||
361 | Ptr_Val_Par->variant.var_1.Int_Comp = 5; | ||
362 | Next_Record->variant.var_1.Int_Comp | ||
363 | = Ptr_Val_Par->variant.var_1.Int_Comp; | ||
364 | Next_Record->Ptr_Comp = Ptr_Val_Par->Ptr_Comp; | ||
365 | Proc_3 (&Next_Record->Ptr_Comp); | ||
366 | /* Ptr_Val_Par->Ptr_Comp->Ptr_Comp | ||
367 | == Ptr_Glob->Ptr_Comp */ | ||
368 | if (Next_Record->Discr == Ident_1) | ||
369 | /* then, executed */ | ||
370 | { | ||
371 | Next_Record->variant.var_1.Int_Comp = 6; | ||
372 | Proc_6 (Ptr_Val_Par->variant.var_1.Enum_Comp, | ||
373 | &Next_Record->variant.var_1.Enum_Comp); | ||
374 | Next_Record->Ptr_Comp = Ptr_Glob->Ptr_Comp; | ||
375 | Proc_7 (Next_Record->variant.var_1.Int_Comp, 10, | ||
376 | &Next_Record->variant.var_1.Int_Comp); | ||
377 | } | ||
378 | else /* not executed */ | ||
379 | structassign (*Ptr_Val_Par, *Ptr_Val_Par->Ptr_Comp); | ||
380 | } /* Proc_1 */ | ||
381 | |||
382 | |||
383 | Proc_2 (Int_Par_Ref) | ||
384 | /******************/ | ||
385 | /* executed once */ | ||
386 | /* *Int_Par_Ref == 1, becomes 4 */ | ||
387 | |||
388 | One_Fifty *Int_Par_Ref; | ||
389 | { | ||
390 | One_Fifty Int_Loc; | ||
391 | Enumeration Enum_Loc; | ||
392 | |||
393 | Int_Loc = *Int_Par_Ref + 10; | ||
394 | do /* executed once */ | ||
395 | if (Ch_1_Glob == 'A') | ||
396 | /* then, executed */ | ||
397 | { | ||
398 | Int_Loc -= 1; | ||
399 | *Int_Par_Ref = Int_Loc - Int_Glob; | ||
400 | Enum_Loc = Ident_1; | ||
401 | } /* if */ | ||
402 | while (Enum_Loc != Ident_1); /* true */ | ||
403 | } /* Proc_2 */ | ||
404 | |||
405 | |||
406 | Proc_3 (Ptr_Ref_Par) | ||
407 | /******************/ | ||
408 | /* executed once */ | ||
409 | /* Ptr_Ref_Par becomes Ptr_Glob */ | ||
410 | |||
411 | Rec_Pointer *Ptr_Ref_Par; | ||
412 | |||
413 | { | ||
414 | if (Ptr_Glob != Null) | ||
415 | /* then, executed */ | ||
416 | *Ptr_Ref_Par = Ptr_Glob->Ptr_Comp; | ||
417 | Proc_7 (10, Int_Glob, &Ptr_Glob->variant.var_1.Int_Comp); | ||
418 | } /* Proc_3 */ | ||
419 | |||
420 | |||
421 | Proc_4 () /* without parameters */ | ||
422 | /*******/ | ||
423 | /* executed once */ | ||
424 | { | ||
425 | Boolean Bool_Loc; | ||
426 | |||
427 | Bool_Loc = Ch_1_Glob == 'A'; | ||
428 | Bool_Glob = Bool_Loc | Bool_Glob; | ||
429 | Ch_2_Glob = 'B'; | ||
430 | } /* Proc_4 */ | ||
431 | |||
432 | |||
433 | Proc_5 () /* without parameters */ | ||
434 | /*******/ | ||
435 | /* executed once */ | ||
436 | { | ||
437 | Ch_1_Glob = 'A'; | ||
438 | Bool_Glob = false; | ||
439 | } /* Proc_5 */ | ||
440 | |||
441 | |||
442 | /* Procedure for the assignment of structures, */ | ||
443 | /* if the C compiler doesn't support this feature */ | ||
444 | #ifdef NOSTRUCTASSIGN | ||
445 | memcpy (d, s, l) | ||
446 | register char *d; | ||
447 | register char *s; | ||
448 | register int l; | ||
449 | { | ||
450 | while (l--) *d++ = *s++; | ||
451 | } | ||
452 | #endif | ||
453 | |||
454 | |||
diff --git a/armv7a/dhrystone/dhry_2.c b/armv7a/dhrystone/dhry_2.c deleted file mode 100644 index 11b8280..0000000 --- a/armv7a/dhrystone/dhry_2.c +++ /dev/null | |||
@@ -1,230 +0,0 @@ | |||
1 | /* | ||
2 | * {module name} DHRYSTONE | ||
3 | * | ||
4 | * {module description} | ||
5 | * | ||
6 | * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | * | ||
8 | * | ||
9 | * Redistribution and use in source and binary forms, with or without | ||
10 | * modification, are permitted provided that the following conditions | ||
11 | * are met: | ||
12 | * | ||
13 | * Redistributions of source code must retain the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer. | ||
15 | * | ||
16 | * Redistributions in binary form must reproduce the above copyright | ||
17 | * notice, this list of conditions and the following disclaimer in the | ||
18 | * documentation and/or other materials provided with the | ||
19 | * distribution. | ||
20 | * | ||
21 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
22 | * its contributors may be used to endorse or promote products derived | ||
23 | * from this software without specific prior written permission. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | */ | ||
38 | |||
39 | /* | ||
40 | **************************************************************************** | ||
41 | * | ||
42 | * "DHRYSTONE" Benchmark Program | ||
43 | * ----------------------------- | ||
44 | * | ||
45 | * Version: C, Version 2.1 | ||
46 | * | ||
47 | * File: dhry_2.c (part 3 of 3) | ||
48 | * | ||
49 | * Date: May 25, 1988 | ||
50 | * | ||
51 | * Author: Reinhold P. Weicker | ||
52 | * | ||
53 | **************************************************************************** | ||
54 | */ | ||
55 | |||
56 | #include "dhry.h" | ||
57 | |||
58 | #ifndef REG | ||
59 | #define REG | ||
60 | /* REG becomes defined as empty */ | ||
61 | /* i.e. no register variables */ | ||
62 | #endif | ||
63 | |||
64 | extern int Int_Glob; | ||
65 | extern char Ch_1_Glob; | ||
66 | |||
67 | |||
68 | Proc_6 (Enum_Val_Par, Enum_Ref_Par) | ||
69 | /*********************************/ | ||
70 | /* executed once */ | ||
71 | /* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */ | ||
72 | |||
73 | Enumeration Enum_Val_Par; | ||
74 | Enumeration *Enum_Ref_Par; | ||
75 | { | ||
76 | *Enum_Ref_Par = Enum_Val_Par; | ||
77 | if (! Func_3 (Enum_Val_Par)) | ||
78 | /* then, not executed */ | ||
79 | *Enum_Ref_Par = Ident_4; | ||
80 | switch (Enum_Val_Par) | ||
81 | { | ||
82 | case Ident_1: | ||
83 | *Enum_Ref_Par = Ident_1; | ||
84 | break; | ||
85 | case Ident_2: | ||
86 | if (Int_Glob > 100) | ||
87 | /* then */ | ||
88 | *Enum_Ref_Par = Ident_1; | ||
89 | else *Enum_Ref_Par = Ident_4; | ||
90 | break; | ||
91 | case Ident_3: /* executed */ | ||
92 | *Enum_Ref_Par = Ident_2; | ||
93 | break; | ||
94 | case Ident_4: break; | ||
95 | case Ident_5: | ||
96 | *Enum_Ref_Par = Ident_3; | ||
97 | break; | ||
98 | } /* switch */ | ||
99 | } /* Proc_6 */ | ||
100 | |||
101 | |||
102 | Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref) | ||
103 | /**********************************************/ | ||
104 | /* executed three times */ | ||
105 | /* first call: Int_1_Par_Val == 2, Int_2_Par_Val == 3, */ | ||
106 | /* Int_Par_Ref becomes 7 */ | ||
107 | /* second call: Int_1_Par_Val == 10, Int_2_Par_Val == 5, */ | ||
108 | /* Int_Par_Ref becomes 17 */ | ||
109 | /* third call: Int_1_Par_Val == 6, Int_2_Par_Val == 10, */ | ||
110 | /* Int_Par_Ref becomes 18 */ | ||
111 | One_Fifty Int_1_Par_Val; | ||
112 | One_Fifty Int_2_Par_Val; | ||
113 | One_Fifty *Int_Par_Ref; | ||
114 | { | ||
115 | One_Fifty Int_Loc; | ||
116 | |||
117 | Int_Loc = Int_1_Par_Val + 2; | ||
118 | *Int_Par_Ref = Int_2_Par_Val + Int_Loc; | ||
119 | } /* Proc_7 */ | ||
120 | |||
121 | |||
122 | Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val) | ||
123 | /*********************************************************************/ | ||
124 | /* executed once */ | ||
125 | /* Int_Par_Val_1 == 3 */ | ||
126 | /* Int_Par_Val_2 == 7 */ | ||
127 | Arr_1_Dim Arr_1_Par_Ref; | ||
128 | Arr_2_Dim Arr_2_Par_Ref; | ||
129 | int Int_1_Par_Val; | ||
130 | int Int_2_Par_Val; | ||
131 | { | ||
132 | REG One_Fifty Int_Index; | ||
133 | REG One_Fifty Int_Loc; | ||
134 | |||
135 | Int_Loc = Int_1_Par_Val + 5; | ||
136 | Arr_1_Par_Ref [Int_Loc] = Int_2_Par_Val; | ||
137 | Arr_1_Par_Ref [Int_Loc+1] = Arr_1_Par_Ref [Int_Loc]; | ||
138 | Arr_1_Par_Ref [Int_Loc+30] = Int_Loc; | ||
139 | for (Int_Index = Int_Loc; Int_Index <= Int_Loc+1; ++Int_Index) | ||
140 | Arr_2_Par_Ref [Int_Loc] [Int_Index] = Int_Loc; | ||
141 | Arr_2_Par_Ref [Int_Loc] [Int_Loc-1] += 1; | ||
142 | Arr_2_Par_Ref [Int_Loc+20] [Int_Loc] = Arr_1_Par_Ref [Int_Loc]; | ||
143 | Int_Glob = 5; | ||
144 | } /* Proc_8 */ | ||
145 | |||
146 | |||
147 | Enumeration Func_1 (Ch_1_Par_Val, Ch_2_Par_Val) | ||
148 | /*************************************************/ | ||
149 | /* executed three times */ | ||
150 | /* first call: Ch_1_Par_Val == 'H', Ch_2_Par_Val == 'R' */ | ||
151 | /* second call: Ch_1_Par_Val == 'A', Ch_2_Par_Val == 'C' */ | ||
152 | /* third call: Ch_1_Par_Val == 'B', Ch_2_Par_Val == 'C' */ | ||
153 | |||
154 | Capital_Letter Ch_1_Par_Val; | ||
155 | Capital_Letter Ch_2_Par_Val; | ||
156 | { | ||
157 | Capital_Letter Ch_1_Loc; | ||
158 | Capital_Letter Ch_2_Loc; | ||
159 | |||
160 | Ch_1_Loc = Ch_1_Par_Val; | ||
161 | Ch_2_Loc = Ch_1_Loc; | ||
162 | if (Ch_2_Loc != Ch_2_Par_Val) | ||
163 | /* then, executed */ | ||
164 | return (Ident_1); | ||
165 | else /* not executed */ | ||
166 | { | ||
167 | Ch_1_Glob = Ch_1_Loc; | ||
168 | return (Ident_2); | ||
169 | } | ||
170 | } /* Func_1 */ | ||
171 | |||
172 | |||
173 | Boolean Func_2 (Str_1_Par_Ref, Str_2_Par_Ref) | ||
174 | /*************************************************/ | ||
175 | /* executed once */ | ||
176 | /* Str_1_Par_Ref == "DHRYSTONE PROGRAM, 1'ST STRING" */ | ||
177 | /* Str_2_Par_Ref == "DHRYSTONE PROGRAM, 2'ND STRING" */ | ||
178 | |||
179 | Str_30 Str_1_Par_Ref; | ||
180 | Str_30 Str_2_Par_Ref; | ||
181 | { | ||
182 | REG One_Thirty Int_Loc; | ||
183 | Capital_Letter Ch_Loc; | ||
184 | |||
185 | Int_Loc = 2; | ||
186 | while (Int_Loc <= 2) /* loop body executed once */ | ||
187 | if (Func_1 (Str_1_Par_Ref[Int_Loc], | ||
188 | Str_2_Par_Ref[Int_Loc+1]) == Ident_1) | ||
189 | /* then, executed */ | ||
190 | { | ||
191 | Ch_Loc = 'A'; | ||
192 | Int_Loc += 1; | ||
193 | } /* if, while */ | ||
194 | if (Ch_Loc >= 'W' && Ch_Loc < 'Z') | ||
195 | /* then, not executed */ | ||
196 | Int_Loc = 7; | ||
197 | if (Ch_Loc == 'R') | ||
198 | /* then, not executed */ | ||
199 | return (true); | ||
200 | else /* executed */ | ||
201 | { | ||
202 | if (strcmp (Str_1_Par_Ref, Str_2_Par_Ref) > 0) | ||
203 | /* then, not executed */ | ||
204 | { | ||
205 | Int_Loc += 7; | ||
206 | Int_Glob = Int_Loc; | ||
207 | return (true); | ||
208 | } | ||
209 | else /* executed */ | ||
210 | return (false); | ||
211 | } /* if Ch_Loc */ | ||
212 | } /* Func_2 */ | ||
213 | |||
214 | |||
215 | Boolean Func_3 (Enum_Par_Val) | ||
216 | /***************************/ | ||
217 | /* executed once */ | ||
218 | /* Enum_Par_Val == Ident_3 */ | ||
219 | Enumeration Enum_Par_Val; | ||
220 | { | ||
221 | Enumeration Enum_Loc; | ||
222 | |||
223 | Enum_Loc = Enum_Par_Val; | ||
224 | if (Enum_Loc == Ident_3) | ||
225 | /* then, executed */ | ||
226 | return (true); | ||
227 | else /* not executed */ | ||
228 | return (false); | ||
229 | } /* Func_3 */ | ||
230 | |||
diff --git a/armv7a/linpack/.project b/armv7a/linpack/.project deleted file mode 100644 index 9d9db0d..0000000 --- a/armv7a/linpack/.project +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>linpack</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <triggers>clean,full,incremental,</triggers> | ||
11 | <arguments> | ||
12 | <dictionary> | ||
13 | <key>?children?</key> | ||
14 | <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|\||</value> | ||
15 | </dictionary> | ||
16 | <dictionary> | ||
17 | <key>?name?</key> | ||
18 | <value></value> | ||
19 | </dictionary> | ||
20 | <dictionary> | ||
21 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
22 | <value>true</value> | ||
23 | </dictionary> | ||
24 | <dictionary> | ||
25 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
26 | <value>all</value> | ||
27 | </dictionary> | ||
28 | <dictionary> | ||
29 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
30 | <value></value> | ||
31 | </dictionary> | ||
32 | <dictionary> | ||
33 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
34 | <value>make</value> | ||
35 | </dictionary> | ||
36 | <dictionary> | ||
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
38 | <value>clean</value> | ||
39 | </dictionary> | ||
40 | <dictionary> | ||
41 | <key>org.eclipse.cdt.make.core.contents</key> | ||
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
43 | </dictionary> | ||
44 | <dictionary> | ||
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
46 | <value>false</value> | ||
47 | </dictionary> | ||
48 | <dictionary> | ||
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
50 | <value>true</value> | ||
51 | </dictionary> | ||
52 | <dictionary> | ||
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
54 | <value>true</value> | ||
55 | </dictionary> | ||
56 | <dictionary> | ||
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
58 | <value>release</value> | ||
59 | </dictionary> | ||
60 | <dictionary> | ||
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
62 | <value>true</value> | ||
63 | </dictionary> | ||
64 | <dictionary> | ||
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
66 | <value>true</value> | ||
67 | </dictionary> | ||
68 | </arguments> | ||
69 | </buildCommand> | ||
70 | <buildCommand> | ||
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
72 | <triggers>full,incremental,</triggers> | ||
73 | <arguments> | ||
74 | </arguments> | ||
75 | </buildCommand> | ||
76 | </buildSpec> | ||
77 | <natures> | ||
78 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
79 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
81 | </natures> | ||
82 | </projectDescription> | ||
diff --git a/armv7a/linpack/linpack.c b/armv7a/linpack/linpack.c deleted file mode 100644 index d663ff1..0000000 --- a/armv7a/linpack/linpack.c +++ /dev/null | |||
@@ -1,946 +0,0 @@ | |||
1 | /* | ||
2 | * {module name} linpack | ||
3 | * | ||
4 | * {module description} | ||
5 | * | ||
6 | * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | * | ||
8 | * | ||
9 | * Redistribution and use in source and binary forms, with or without | ||
10 | * modification, are permitted provided that the following conditions | ||
11 | * are met: | ||
12 | * | ||
13 | * Redistributions of source code must retain the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer. | ||
15 | * | ||
16 | * Redistributions in binary form must reproduce the above copyright | ||
17 | * notice, this list of conditions and the following disclaimer in the | ||
18 | * documentation and/or other materials provided with the | ||
19 | * distribution. | ||
20 | * | ||
21 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
22 | * its contributors may be used to endorse or promote products derived | ||
23 | * from this software without specific prior written permission. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | */ | ||
38 | |||
39 | /* | ||
40 | |||
41 | Translated to C by Bonnie Toy 5/88 | ||
42 | - modified on 2/25/94 to fix a problem with daxpy for | ||
43 | unequal increments or equal increments not equal to 1. | ||
44 | Jack Dongarra | ||
45 | - modified on 08/27/09 fix typo line 270, plus set 'ix' to 0 | ||
46 | in the case incx is not 1 | ||
47 | Julie Langou | ||
48 | |||
49 | To compile single precision version for Sun-4: | ||
50 | |||
51 | cc -DSP -O4 -fsingle -fsingle2 clinpack.c -lm | ||
52 | |||
53 | To compile double precision version for Sun-4: | ||
54 | |||
55 | cc -DDP -O4 clinpack.c -lm | ||
56 | |||
57 | To obtain rolled source BLAS, add -DROLL to the command lines. | ||
58 | To obtain unrolled source BLAS, add -DUNROLL to the command lines. | ||
59 | |||
60 | You must specify one of -DSP or -DDP to compile correctly. | ||
61 | |||
62 | You must specify one of -DROLL or -DUNROLL to compile correctly. | ||
63 | |||
64 | */ | ||
65 | |||
66 | #ifdef SP | ||
67 | #define REAL float | ||
68 | #define ZERO 0.0 | ||
69 | #define ONE 1.0 | ||
70 | #define PREC "Single " | ||
71 | #endif | ||
72 | |||
73 | #ifdef DP | ||
74 | #define REAL double | ||
75 | #define ZERO 0.0e0 | ||
76 | #define ONE 1.0e0 | ||
77 | #define PREC "Double " | ||
78 | #endif | ||
79 | |||
80 | #define NTIMES 10 | ||
81 | |||
82 | #ifdef ROLL | ||
83 | #define ROLLING "Rolled " | ||
84 | #endif | ||
85 | #ifdef UNROLL | ||
86 | #define ROLLING "Unrolled " | ||
87 | #endif | ||
88 | |||
89 | #include <stdio.h> | ||
90 | #include <math.h> | ||
91 | |||
92 | static REAL time[9][9]; | ||
93 | |||
94 | int main (void) | ||
95 | { | ||
96 | static REAL aa[200][200],a[200][201],b[200],x[200]; | ||
97 | REAL cray,ops,total,norma,normx; | ||
98 | REAL resid,residn,eps,t1,tm,tm2; | ||
99 | REAL epslon(),second(),kf; | ||
100 | static int ipvt[200],n,i,ntimes,info,lda,ldaa,kflops; | ||
101 | |||
102 | lda = 201; | ||
103 | ldaa = 200; | ||
104 | cray = .056; | ||
105 | n = 100; | ||
106 | |||
107 | fprintf(stdout,ROLLING);fprintf(stdout,PREC);fprintf(stdout,"Precision Linpack\n\n"); | ||
108 | fprintf(stderr,ROLLING);fprintf(stderr,PREC);fprintf(stderr,"Precision Linpack\n\n"); | ||
109 | |||
110 | ops = (2.0e0*(n*n*n))/3.0 + 2.0*(n*n); | ||
111 | |||
112 | matgen(a,lda,n,b,&norma); | ||
113 | t1 = second(); | ||
114 | dgefa(a,lda,n,ipvt,&info); | ||
115 | time[0][0] = second() - t1; | ||
116 | t1 = second(); | ||
117 | dgesl(a,lda,n,ipvt,b,0); | ||
118 | time[1][0] = second() - t1; | ||
119 | total = time[0][0] + time[1][0]; | ||
120 | |||
121 | /* compute a residual to verify results. */ | ||
122 | |||
123 | for (i = 0; i < n; i++) { | ||
124 | x[i] = b[i]; | ||
125 | } | ||
126 | matgen(a,lda,n,b,&norma); | ||
127 | for (i = 0; i < n; i++) { | ||
128 | b[i] = -b[i]; | ||
129 | } | ||
130 | dmxpy(n,b,n,lda,x,a); | ||
131 | resid = 0.0; | ||
132 | normx = 0.0; | ||
133 | for (i = 0; i < n; i++) { | ||
134 | resid = (resid > fabs((double)b[i])) | ||
135 | ? resid : fabs((double)b[i]); | ||
136 | normx = (normx > fabs((double)x[i])) | ||
137 | ? normx : fabs((double)x[i]); | ||
138 | } | ||
139 | eps = epslon((REAL)ONE); | ||
140 | residn = resid/( n*norma*normx*eps ); | ||
141 | |||
142 | printf(" norm. resid resid machep"); | ||
143 | printf(" x[0]-1 x[n-1]-1\n"); | ||
144 | printf(" %8.1f %16.8e%16.8e%16.8e%16.8e\n", | ||
145 | (double)residn, (double)resid, (double)eps, | ||
146 | (double)x[0]-1, (double)x[n-1]-1); | ||
147 | |||
148 | fprintf(stderr," times are reported for matrices of order %5d\n",n); | ||
149 | fprintf(stderr," dgefa dgesl total kflops unit"); | ||
150 | fprintf(stderr," ratio\n"); | ||
151 | |||
152 | time[2][0] = total; | ||
153 | time[3][0] = ops/(1.0e3*total); | ||
154 | time[4][0] = 2.0e3/time[3][0]; | ||
155 | time[5][0] = total/cray; | ||
156 | |||
157 | fprintf(stderr," times for array with leading dimension of%5d\n",lda); | ||
158 | print_time(0); | ||
159 | |||
160 | matgen(a,lda,n,b,&norma); | ||
161 | t1 = second(); | ||
162 | dgefa(a,lda,n,ipvt,&info); | ||
163 | time[0][1] = second() - t1; | ||
164 | t1 = second(); | ||
165 | dgesl(a,lda,n,ipvt,b,0); | ||
166 | time[1][1] = second() - t1; | ||
167 | total = time[0][1] + time[1][1]; | ||
168 | time[2][1] = total; | ||
169 | time[3][1] = ops/(1.0e3*total); | ||
170 | time[4][1] = 2.0e3/time[3][1]; | ||
171 | time[5][1] = total/cray; | ||
172 | |||
173 | matgen(a,lda,n,b,&norma); | ||
174 | t1 = second(); | ||
175 | dgefa(a,lda,n,ipvt,&info); | ||
176 | time[0][2] = second() - t1; | ||
177 | t1 = second(); | ||
178 | dgesl(a,lda,n,ipvt,b,0); | ||
179 | time[1][2] = second() - t1; | ||
180 | total = time[0][2] + time[1][2]; | ||
181 | time[2][2] = total; | ||
182 | time[3][2] = ops/(1.0e3*total); | ||
183 | time[4][2] = 2.0e3/time[3][2]; | ||
184 | time[5][2] = total/cray; | ||
185 | |||
186 | ntimes = NTIMES; | ||
187 | tm2 = 0.0; | ||
188 | t1 = second(); | ||
189 | |||
190 | for (i = 0; i < ntimes; i++) { | ||
191 | tm = second(); | ||
192 | matgen(a,lda,n,b,&norma); | ||
193 | tm2 = tm2 + second() - tm; | ||
194 | dgefa(a,lda,n,ipvt,&info); | ||
195 | } | ||
196 | |||
197 | time[0][3] = (second() - t1 - tm2)/ntimes; | ||
198 | t1 = second(); | ||
199 | |||
200 | for (i = 0; i < ntimes; i++) { | ||
201 | dgesl(a,lda,n,ipvt,b,0); | ||
202 | } | ||
203 | |||
204 | time[1][3] = (second() - t1)/ntimes; | ||
205 | total = time[0][3] + time[1][3]; | ||
206 | time[2][3] = total; | ||
207 | time[3][3] = ops/(1.0e3*total); | ||
208 | time[4][3] = 2.0e3/time[3][3]; | ||
209 | time[5][3] = total/cray; | ||
210 | |||
211 | print_time(1); | ||
212 | print_time(2); | ||
213 | print_time(3); | ||
214 | |||
215 | matgen(aa,ldaa,n,b,&norma); | ||
216 | t1 = second(); | ||
217 | dgefa(aa,ldaa,n,ipvt,&info); | ||
218 | time[0][4] = second() - t1; | ||
219 | t1 = second(); | ||
220 | dgesl(aa,ldaa,n,ipvt,b,0); | ||
221 | time[1][4] = second() - t1; | ||
222 | total = time[0][4] + time[1][4]; | ||
223 | time[2][4] = total; | ||
224 | time[3][4] = ops/(1.0e3*total); | ||
225 | time[4][4] = 2.0e3/time[3][4]; | ||
226 | time[5][4] = total/cray; | ||
227 | |||
228 | matgen(aa,ldaa,n,b,&norma); | ||
229 | t1 = second(); | ||
230 | dgefa(aa,ldaa,n,ipvt,&info); | ||
231 | time[0][5] = second() - t1; | ||
232 | t1 = second(); | ||
233 | dgesl(aa,ldaa,n,ipvt,b,0); | ||
234 | time[1][5] = second() - t1; | ||
235 | total = time[0][5] + time[1][5]; | ||
236 | time[2][5] = total; | ||
237 | time[3][5] = ops/(1.0e3*total); | ||
238 | time[4][5] = 2.0e3/time[3][5]; | ||
239 | time[5][5] = total/cray; | ||
240 | |||
241 | matgen(aa,ldaa,n,b,&norma); | ||
242 | t1 = second(); | ||
243 | dgefa(aa,ldaa,n,ipvt,&info); | ||
244 | time[0][6] = second() - t1; | ||
245 | t1 = second(); | ||
246 | dgesl(aa,ldaa,n,ipvt,b,0); | ||
247 | time[1][6] = second() - t1; | ||
248 | total = time[0][6] + time[1][6]; | ||
249 | time[2][6] = total; | ||
250 | time[3][6] = ops/(1.0e3*total); | ||
251 | time[4][6] = 2.0e3/time[3][6]; | ||
252 | time[5][6] = total/cray; | ||
253 | |||
254 | ntimes = NTIMES; | ||
255 | tm2 = 0; | ||
256 | t1 = second(); | ||
257 | for (i = 0; i < ntimes; i++) { | ||
258 | tm = second(); | ||
259 | matgen(aa,ldaa,n,b,&norma); | ||
260 | tm2 = tm2 + second() - tm; | ||
261 | dgefa(aa,ldaa,n,ipvt,&info); | ||
262 | } | ||
263 | time[0][7] = (second() - t1 - tm2)/ntimes; | ||
264 | t1 = second(); | ||
265 | for (i = 0; i < ntimes; i++) { | ||
266 | dgesl(aa,ldaa,n,ipvt,b,0); | ||
267 | } | ||
268 | time[1][7] = (second() - t1)/ntimes; | ||
269 | total = time[0][7] + time[1][7]; | ||
270 | time[2][7] = total; | ||
271 | time[3][7] = ops/(1.0e3*total); | ||
272 | time[4][7] = 2.0e3/time[3][7]; | ||
273 | time[5][7] = total/cray; | ||
274 | |||
275 | /* the following code sequence implements the semantics of | ||
276 | the Fortran intrinsics "nint(min(time[3][3],time[3][7]))" */ | ||
277 | |||
278 | kf = (time[3][3] < time[3][7]) ? time[3][3] : time[3][7]; | ||
279 | kf = (kf > ZERO) ? (kf + .5) : (kf - .5); | ||
280 | if (fabs((double)kf) < ONE) | ||
281 | kflops = 0; | ||
282 | else { | ||
283 | kflops = floor(fabs((double)kf)); | ||
284 | if (kf < ZERO) kflops = -kflops; | ||
285 | } | ||
286 | |||
287 | fprintf(stderr," times for array with leading dimension of%4d\n",ldaa); | ||
288 | print_time(4); | ||
289 | print_time(5); | ||
290 | print_time(6); | ||
291 | print_time(7); | ||
292 | fprintf(stderr,ROLLING);fprintf(stderr,PREC); | ||
293 | fprintf(stderr," Precision %5d Kflops ; %d Reps \n",kflops,NTIMES); | ||
294 | |||
295 | return(0); | ||
296 | } | ||
297 | |||
298 | /*----------------------*/ | ||
299 | print_time (row) | ||
300 | int row; | ||
301 | { | ||
302 | fprintf(stderr,"%11.2f%11.2f%11.2f%11.0f%11.2f%11.2f\n", (double)time[0][row], | ||
303 | (double)time[1][row], (double)time[2][row], (double)time[3][row], | ||
304 | (double)time[4][row], (double)time[5][row]); | ||
305 | } | ||
306 | |||
307 | /*----------------------*/ | ||
308 | matgen(a,lda,n,b,norma) | ||
309 | REAL a[],b[],*norma; | ||
310 | int lda, n; | ||
311 | |||
312 | /* We would like to declare a[][lda], but c does not allow it. In this | ||
313 | function, references to a[i][j] are written a[lda*j+i]. */ | ||
314 | |||
315 | { | ||
316 | int init, i, j; | ||
317 | |||
318 | init = 1325; | ||
319 | *norma = 0.0; | ||
320 | for (j = 0; j < n; j++) { | ||
321 | for (i = 0; i < n; i++) { | ||
322 | init = 3125*init % 65536; | ||
323 | a[lda*j+i] = (init - 32768.0)/16384.0; | ||
324 | *norma = (a[lda*j+i] > *norma) ? a[lda*j+i] : *norma; | ||
325 | } | ||
326 | } | ||
327 | for (i = 0; i < n; i++) { | ||
328 | b[i] = 0.0; | ||
329 | } | ||
330 | for (j = 0; j < n; j++) { | ||
331 | for (i = 0; i < n; i++) { | ||
332 | b[i] = b[i] + a[lda*j+i]; | ||
333 | } | ||
334 | } | ||
335 | } | ||
336 | |||
337 | /*----------------------*/ | ||
338 | dgefa(a,lda,n,ipvt,info) | ||
339 | REAL a[]; | ||
340 | int lda,n,ipvt[],*info; | ||
341 | |||
342 | /* We would like to declare a[][lda], but c does not allow it. In this | ||
343 | function, references to a[i][j] are written a[lda*i+j]. */ | ||
344 | /* | ||
345 | dgefa factors a double precision matrix by gaussian elimination. | ||
346 | |||
347 | dgefa is usually called by dgeco, but it can be called | ||
348 | directly with a saving in time if rcond is not needed. | ||
349 | (time for dgeco) = (1 + 9/n)*(time for dgefa) . | ||
350 | |||
351 | on entry | ||
352 | |||
353 | a REAL precision[n][lda] | ||
354 | the matrix to be factored. | ||
355 | |||
356 | lda integer | ||
357 | the leading dimension of the array a . | ||
358 | |||
359 | n integer | ||
360 | the order of the matrix a . | ||
361 | |||
362 | on return | ||
363 | |||
364 | a an upper triangular matrix and the multipliers | ||
365 | which were used to obtain it. | ||
366 | the factorization can be written a = l*u where | ||
367 | l is a product of permutation and unit lower | ||
368 | triangular matrices and u is upper triangular. | ||
369 | |||
370 | ipvt integer[n] | ||
371 | an integer vector of pivot indices. | ||
372 | |||
373 | info integer | ||
374 | = 0 normal value. | ||
375 | = k if u[k][k] .eq. 0.0 . this is not an error | ||
376 | condition for this subroutine, but it does | ||
377 | indicate that dgesl or dgedi will divide by zero | ||
378 | if called. use rcond in dgeco for a reliable | ||
379 | indication of singularity. | ||
380 | |||
381 | linpack. this version dated 08/14/78 . | ||
382 | cleve moler, university of new mexico, argonne national lab. | ||
383 | |||
384 | functions | ||
385 | |||
386 | blas daxpy,dscal,idamax | ||
387 | */ | ||
388 | |||
389 | { | ||
390 | /* internal variables */ | ||
391 | |||
392 | REAL t; | ||
393 | int idamax(),j,k,kp1,l,nm1; | ||
394 | |||
395 | |||
396 | /* gaussian elimination with partial pivoting */ | ||
397 | |||
398 | *info = 0; | ||
399 | nm1 = n - 1; | ||
400 | if (nm1 >= 0) { | ||
401 | for (k = 0; k < nm1; k++) { | ||
402 | kp1 = k + 1; | ||
403 | |||
404 | /* find l = pivot index */ | ||
405 | |||
406 | l = idamax(n-k,&a[lda*k+k],1) + k; | ||
407 | ipvt[k] = l; | ||
408 | |||
409 | /* zero pivot implies this column already | ||
410 | triangularized */ | ||
411 | |||
412 | if (a[lda*k+l] != ZERO) { | ||
413 | |||
414 | /* interchange if necessary */ | ||
415 | |||
416 | if (l != k) { | ||
417 | t = a[lda*k+l]; | ||
418 | a[lda*k+l] = a[lda*k+k]; | ||
419 | a[lda*k+k] = t; | ||
420 | } | ||
421 | |||
422 | /* compute multipliers */ | ||
423 | |||
424 | t = -ONE/a[lda*k+k]; | ||
425 | dscal(n-(k+1),t,&a[lda*k+k+1],1); | ||
426 | |||
427 | /* row elimination with column indexing */ | ||
428 | |||
429 | for (j = kp1; j < n; j++) { | ||
430 | t = a[lda*j+l]; | ||
431 | if (l != k) { | ||
432 | a[lda*j+l] = a[lda*j+k]; | ||
433 | a[lda*j+k] = t; | ||
434 | } | ||
435 | daxpy(n-(k+1),t,&a[lda*k+k+1],1, | ||
436 | &a[lda*j+k+1],1); | ||
437 | } | ||
438 | } | ||
439 | else { | ||
440 | *info = k; | ||
441 | } | ||
442 | } | ||
443 | } | ||
444 | ipvt[n-1] = n-1; | ||
445 | if (a[lda*(n-1)+(n-1)] == ZERO) *info = n-1; | ||
446 | } | ||
447 | |||
448 | /*----------------------*/ | ||
449 | |||
450 | dgesl(a,lda,n,ipvt,b,job) | ||
451 | int lda,n,ipvt[],job; | ||
452 | REAL a[],b[]; | ||
453 | |||
454 | /* We would like to declare a[][lda], but c does not allow it. In this | ||
455 | function, references to a[i][j] are written a[lda*i+j]. */ | ||
456 | |||
457 | /* | ||
458 | dgesl solves the double precision system | ||
459 | a * x = b or trans(a) * x = b | ||
460 | using the factors computed by dgeco or dgefa. | ||
461 | |||
462 | on entry | ||
463 | |||
464 | a double precision[n][lda] | ||
465 | the output from dgeco or dgefa. | ||
466 | |||
467 | lda integer | ||
468 | the leading dimension of the array a . | ||
469 | |||
470 | n integer | ||
471 | the order of the matrix a . | ||
472 | |||
473 | ipvt integer[n] | ||
474 | the pivot vector from dgeco or dgefa. | ||
475 | |||
476 | b double precision[n] | ||
477 | the right hand side vector. | ||
478 | |||
479 | job integer | ||
480 | = 0 to solve a*x = b , | ||
481 | = nonzero to solve trans(a)*x = b where | ||
482 | trans(a) is the transpose. | ||
483 | |||
484 | on return | ||
485 | |||
486 | b the solution vector x . | ||
487 | |||
488 | error condition | ||
489 | |||
490 | a division by zero will occur if the input factor contains a | ||
491 | zero on the diagonal. technically this indicates singularity | ||
492 | but it is often caused by improper arguments or improper | ||
493 | setting of lda . it will not occur if the subroutines are | ||
494 | called correctly and if dgeco has set rcond .gt. 0.0 | ||
495 | or dgefa has set info .eq. 0 . | ||
496 | |||
497 | to compute inverse(a) * c where c is a matrix | ||
498 | with p columns | ||
499 | dgeco(a,lda,n,ipvt,rcond,z) | ||
500 | if (!rcond is too small){ | ||
501 | for (j=0,j<p,j++) | ||
502 | dgesl(a,lda,n,ipvt,c[j][0],0); | ||
503 | } | ||
504 | |||
505 | linpack. this version dated 08/14/78 . | ||
506 | cleve moler, university of new mexico, argonne national lab. | ||
507 | |||
508 | functions | ||
509 | |||
510 | blas daxpy,ddot | ||
511 | */ | ||
512 | { | ||
513 | /* internal variables */ | ||
514 | |||
515 | REAL ddot(),t; | ||
516 | int k,kb,l,nm1; | ||
517 | |||
518 | nm1 = n - 1; | ||
519 | if (job == 0) { | ||
520 | |||
521 | /* job = 0 , solve a * x = b | ||
522 | first solve l*y = b */ | ||
523 | |||
524 | if (nm1 >= 1) { | ||
525 | for (k = 0; k < nm1; k++) { | ||
526 | l = ipvt[k]; | ||
527 | t = b[l]; | ||
528 | if (l != k){ | ||
529 | b[l] = b[k]; | ||
530 | b[k] = t; | ||
531 | } | ||
532 | daxpy(n-(k+1),t,&a[lda*k+k+1],1,&b[k+1],1); | ||
533 | } | ||
534 | } | ||
535 | |||
536 | /* now solve u*x = y */ | ||
537 | |||
538 | for (kb = 0; kb < n; kb++) { | ||
539 | k = n - (kb + 1); | ||
540 | b[k] = b[k]/a[lda*k+k]; | ||
541 | t = -b[k]; | ||
542 | daxpy(k,t,&a[lda*k+0],1,&b[0],1); | ||
543 | } | ||
544 | } | ||
545 | else { | ||
546 | |||
547 | /* job = nonzero, solve trans(a) * x = b | ||
548 | first solve trans(u)*y = b */ | ||
549 | |||
550 | for (k = 0; k < n; k++) { | ||
551 | t = ddot(k,&a[lda*k+0],1,&b[0],1); | ||
552 | b[k] = (b[k] - t)/a[lda*k+k]; | ||
553 | } | ||
554 | |||
555 | /* now solve trans(l)*x = y */ | ||
556 | |||
557 | if (nm1 >= 1) { | ||
558 | for (kb = 1; kb < nm1; kb++) { | ||
559 | k = n - (kb+1); | ||
560 | b[k] = b[k] + ddot(n-(k+1),&a[lda*k+k+1],1,&b[k+1],1); | ||
561 | l = ipvt[k]; | ||
562 | if (l != k) { | ||
563 | t = b[l]; | ||
564 | b[l] = b[k]; | ||
565 | b[k] = t; | ||
566 | } | ||
567 | } | ||
568 | } | ||
569 | } | ||
570 | } | ||
571 | |||
572 | /*----------------------*/ | ||
573 | |||
574 | daxpy(n,da,dx,incx,dy,incy) | ||
575 | /* | ||
576 | constant times a vector plus a vector. | ||
577 | jack dongarra, linpack, 3/11/78. | ||
578 | */ | ||
579 | REAL dx[],dy[],da; | ||
580 | int incx,incy,n; | ||
581 | { | ||
582 | int i,ix,iy,m,mp1; | ||
583 | |||
584 | if(n <= 0) return; | ||
585 | if (da == ZERO) return; | ||
586 | |||
587 | if(incx != 1 || incy != 1) { | ||
588 | |||
589 | /* code for unequal increments or equal increments | ||
590 | not equal to 1 */ | ||
591 | |||
592 | ix = 0; | ||
593 | iy = 0; | ||
594 | if(incx < 0) ix = (-n+1)*incx; | ||
595 | if(incy < 0)iy = (-n+1)*incy; | ||
596 | for (i = 0;i < n; i++) { | ||
597 | dy[iy] = dy[iy] + da*dx[ix]; | ||
598 | ix = ix + incx; | ||
599 | iy = iy + incy; | ||
600 | } | ||
601 | return; | ||
602 | } | ||
603 | |||
604 | /* code for both increments equal to 1 */ | ||
605 | |||
606 | #ifdef ROLL | ||
607 | for (i = 0;i < n; i++) { | ||
608 | dy[i] = dy[i] + da*dx[i]; | ||
609 | } | ||
610 | #endif | ||
611 | #ifdef UNROLL | ||
612 | |||
613 | m = n % 4; | ||
614 | if ( m != 0) { | ||
615 | for (i = 0; i < m; i++) | ||
616 | dy[i] = dy[i] + da*dx[i]; | ||
617 | if (n < 4) return; | ||
618 | } | ||
619 | for (i = m; i < n; i = i + 4) { | ||
620 | dy[i] = dy[i] + da*dx[i]; | ||
621 | dy[i+1] = dy[i+1] + da*dx[i+1]; | ||
622 | dy[i+2] = dy[i+2] + da*dx[i+2]; | ||
623 | dy[i+3] = dy[i+3] + da*dx[i+3]; | ||
624 | } | ||
625 | #endif | ||
626 | } | ||
627 | |||
628 | /*----------------------*/ | ||
629 | |||
630 | REAL ddot(n,dx,incx,dy,incy) | ||
631 | /* | ||
632 | forms the dot product of two vectors. | ||
633 | jack dongarra, linpack, 3/11/78. | ||
634 | */ | ||
635 | REAL dx[],dy[]; | ||
636 | |||
637 | int incx,incy,n; | ||
638 | { | ||
639 | REAL dtemp; | ||
640 | int i,ix,iy,m,mp1; | ||
641 | |||
642 | dtemp = ZERO; | ||
643 | |||
644 | if(n <= 0) return(ZERO); | ||
645 | |||
646 | if(incx != 1 || incy != 1) { | ||
647 | |||
648 | /* code for unequal increments or equal increments | ||
649 | not equal to 1 */ | ||
650 | |||
651 | ix = 0; | ||
652 | iy = 0; | ||
653 | if (incx < 0) ix = (-n+1)*incx; | ||
654 | if (incy < 0) iy = (-n+1)*incy; | ||
655 | for (i = 0;i < n; i++) { | ||
656 | dtemp = dtemp + dx[ix]*dy[iy]; | ||
657 | ix = ix + incx; | ||
658 | iy = iy + incy; | ||
659 | } | ||
660 | return(dtemp); | ||
661 | } | ||
662 | |||
663 | /* code for both increments equal to 1 */ | ||
664 | |||
665 | #ifdef ROLL | ||
666 | for (i=0;i < n; i++) | ||
667 | dtemp = dtemp + dx[i]*dy[i]; | ||
668 | return(dtemp); | ||
669 | #endif | ||
670 | #ifdef UNROLL | ||
671 | |||
672 | m = n % 5; | ||
673 | if (m != 0) { | ||
674 | for (i = 0; i < m; i++) | ||
675 | dtemp = dtemp + dx[i]*dy[i]; | ||
676 | if (n < 5) return(dtemp); | ||
677 | } | ||
678 | for (i = m; i < n; i = i + 5) { | ||
679 | dtemp = dtemp + dx[i]*dy[i] + | ||
680 | dx[i+1]*dy[i+1] + dx[i+2]*dy[i+2] + | ||
681 | dx[i+3]*dy[i+3] + dx[i+4]*dy[i+4]; | ||
682 | } | ||
683 | return(dtemp); | ||
684 | #endif | ||
685 | } | ||
686 | |||
687 | /*----------------------*/ | ||
688 | dscal(n,da,dx,incx) | ||
689 | |||
690 | /* scales a vector by a constant. | ||
691 | jack dongarra, linpack, 3/11/78. | ||
692 | */ | ||
693 | REAL da,dx[]; | ||
694 | int n, incx; | ||
695 | { | ||
696 | int i,m,mp1,nincx; | ||
697 | |||
698 | if(n <= 0)return; | ||
699 | if(incx != 1) { | ||
700 | |||
701 | /* code for increment not equal to 1 */ | ||
702 | |||
703 | nincx = n*incx; | ||
704 | for (i = 0; i < nincx; i = i + incx) | ||
705 | dx[i] = da*dx[i]; | ||
706 | return; | ||
707 | } | ||
708 | |||
709 | /* code for increment equal to 1 */ | ||
710 | |||
711 | #ifdef ROLL | ||
712 | for (i = 0; i < n; i++) | ||
713 | dx[i] = da*dx[i]; | ||
714 | #endif | ||
715 | #ifdef UNROLL | ||
716 | |||
717 | m = n % 5; | ||
718 | if (m != 0) { | ||
719 | for (i = 0; i < m; i++) | ||
720 | dx[i] = da*dx[i]; | ||
721 | if (n < 5) return; | ||
722 | } | ||
723 | for (i = m; i < n; i = i + 5){ | ||
724 | dx[i] = da*dx[i]; | ||
725 | dx[i+1] = da*dx[i+1]; | ||
726 | dx[i+2] = da*dx[i+2]; | ||
727 | dx[i+3] = da*dx[i+3]; | ||
728 | dx[i+4] = da*dx[i+4]; | ||
729 | } | ||
730 | #endif | ||
731 | |||
732 | } | ||
733 | |||
734 | /*----------------------*/ | ||
735 | int idamax(n,dx,incx) | ||
736 | |||
737 | /* | ||
738 | finds the index of element having max. absolute value. | ||
739 | jack dongarra, linpack, 3/11/78. | ||
740 | */ | ||
741 | |||
742 | REAL dx[]; | ||
743 | int incx,n; | ||
744 | { | ||
745 | REAL dmax; | ||
746 | int i, ix, itemp; | ||
747 | |||
748 | if( n < 1 ) return(-1); | ||
749 | if(n ==1 ) return(0); | ||
750 | if(incx != 1) { | ||
751 | |||
752 | /* code for increment not equal to 1 */ | ||
753 | |||
754 | ix = 0; | ||
755 | dmax = fabs((double)dx[0]); | ||
756 | ix = ix + incx; | ||
757 | for (i = 1; i < n; i++) { | ||
758 | if(fabs((double)dx[ix]) > dmax) { | ||
759 | itemp = i; | ||
760 | dmax = fabs((double)dx[ix]); | ||
761 | } | ||
762 | ix = ix + incx; | ||
763 | } | ||
764 | } | ||
765 | else { | ||
766 | |||
767 | /* code for increment equal to 1 */ | ||
768 | |||
769 | itemp = 0; | ||
770 | dmax = fabs((double)dx[0]); | ||
771 | for (i = 1; i < n; i++) { | ||
772 | if(fabs((double)dx[i]) > dmax) { | ||
773 | itemp = i; | ||
774 | dmax = fabs((double)dx[i]); | ||
775 | } | ||
776 | } | ||
777 | } | ||
778 | return (itemp); | ||
779 | } | ||
780 | |||
781 | /*----------------------*/ | ||
782 | REAL epslon (x) | ||
783 | REAL x; | ||
784 | /* | ||
785 | estimate unit roundoff in quantities of size x. | ||
786 | */ | ||
787 | |||
788 | { | ||
789 | REAL a,b,c,eps; | ||
790 | /* | ||
791 | this program should function properly on all systems | ||
792 | satisfying the following two assumptions, | ||
793 | 1. the base used in representing dfloating point | ||
794 | numbers is not a power of three. | ||
795 | 2. the quantity a in statement 10 is represented to | ||
796 | the accuracy used in dfloating point variables | ||
797 | that are stored in memory. | ||
798 | the statement number 10 and the go to 10 are intended to | ||
799 | force optimizing compilers to generate code satisfying | ||
800 | assumption 2. | ||
801 | under these assumptions, it should be true that, | ||
802 | a is not exactly equal to four-thirds, | ||
803 | b has a zero for its last bit or digit, | ||
804 | c is not exactly equal to one, | ||
805 | eps measures the separation of 1.0 from | ||
806 | the next larger dfloating point number. | ||
807 | the developers of eispack would appreciate being informed | ||
808 | about any systems where these assumptions do not hold. | ||
809 | |||
810 | ***************************************************************** | ||
811 | this routine is one of the auxiliary routines used by eispack iii | ||
812 | to avoid machine dependencies. | ||
813 | ***************************************************************** | ||
814 | |||
815 | this version dated 4/6/83. | ||
816 | */ | ||
817 | |||
818 | a = 4.0e0/3.0e0; | ||
819 | eps = ZERO; | ||
820 | while (eps == ZERO) { | ||
821 | b = a - ONE; | ||
822 | c = b + b + b; | ||
823 | eps = fabs((double)(c-ONE)); | ||
824 | } | ||
825 | return(eps*fabs((double)x)); | ||
826 | } | ||
827 | |||
828 | /*----------------------*/ | ||
829 | dmxpy (n1, y, n2, ldm, x, m) | ||
830 | REAL y[], x[], m[]; | ||
831 | int n1, n2, ldm; | ||
832 | |||
833 | /* We would like to declare m[][ldm], but c does not allow it. In this | ||
834 | function, references to m[i][j] are written m[ldm*i+j]. */ | ||
835 | |||
836 | /* | ||
837 | purpose: | ||
838 | multiply matrix m times vector x and add the result to vector y. | ||
839 | |||
840 | parameters: | ||
841 | |||
842 | n1 integer, number of elements in vector y, and number of rows in | ||
843 | matrix m | ||
844 | |||
845 | y double [n1], vector of length n1 to which is added | ||
846 | the product m*x | ||
847 | |||
848 | n2 integer, number of elements in vector x, and number of columns | ||
849 | in matrix m | ||
850 | |||
851 | ldm integer, leading dimension of array m | ||
852 | |||
853 | x double [n2], vector of length n2 | ||
854 | |||
855 | m double [ldm][n2], matrix of n1 rows and n2 columns | ||
856 | |||
857 | ---------------------------------------------------------------------- | ||
858 | */ | ||
859 | { | ||
860 | int j,i,jmin; | ||
861 | /* cleanup odd vector */ | ||
862 | |||
863 | j = n2 % 2; | ||
864 | if (j >= 1) { | ||
865 | j = j - 1; | ||
866 | for (i = 0; i < n1; i++) | ||
867 | y[i] = (y[i]) + x[j]*m[ldm*j+i]; | ||
868 | } | ||
869 | |||
870 | /* cleanup odd group of two vectors */ | ||
871 | |||
872 | j = n2 % 4; | ||
873 | if (j >= 2) { | ||
874 | j = j - 1; | ||
875 | for (i = 0; i < n1; i++) | ||
876 | y[i] = ( (y[i]) | ||
877 | + x[j-1]*m[ldm*(j-1)+i]) + x[j]*m[ldm*j+i]; | ||
878 | } | ||
879 | |||
880 | /* cleanup odd group of four vectors */ | ||
881 | |||
882 | j = n2 % 8; | ||
883 | if (j >= 4) { | ||
884 | j = j - 1; | ||
885 | for (i = 0; i < n1; i++) | ||
886 | y[i] = ((( (y[i]) | ||
887 | + x[j-3]*m[ldm*(j-3)+i]) | ||
888 | + x[j-2]*m[ldm*(j-2)+i]) | ||
889 | + x[j-1]*m[ldm*(j-1)+i]) + x[j]*m[ldm*j+i]; | ||
890 | } | ||
891 | |||
892 | /* cleanup odd group of eight vectors */ | ||
893 | |||
894 | j = n2 % 16; | ||
895 | if (j >= 8) { | ||
896 | j = j - 1; | ||
897 | for (i = 0; i < n1; i++) | ||
898 | y[i] = ((((((( (y[i]) | ||
899 | + x[j-7]*m[ldm*(j-7)+i]) + x[j-6]*m[ldm*(j-6)+i]) | ||
900 | + x[j-5]*m[ldm*(j-5)+i]) + x[j-4]*m[ldm*(j-4)+i]) | ||
901 | + x[j-3]*m[ldm*(j-3)+i]) + x[j-2]*m[ldm*(j-2)+i]) | ||
902 | + x[j-1]*m[ldm*(j-1)+i]) + x[j] *m[ldm*j+i]; | ||
903 | } | ||
904 | |||
905 | /* main loop - groups of sixteen vectors */ | ||
906 | |||
907 | jmin = (n2%16)+16; | ||
908 | for (j = jmin-1; j < n2; j = j + 16) { | ||
909 | for (i = 0; i < n1; i++) | ||
910 | y[i] = ((((((((((((((( (y[i]) | ||
911 | + x[j-15]*m[ldm*(j-15)+i]) | ||
912 | + x[j-14]*m[ldm*(j-14)+i]) | ||
913 | + x[j-13]*m[ldm*(j-13)+i]) | ||
914 | + x[j-12]*m[ldm*(j-12)+i]) | ||
915 | + x[j-11]*m[ldm*(j-11)+i]) | ||
916 | + x[j-10]*m[ldm*(j-10)+i]) | ||
917 | + x[j- 9]*m[ldm*(j- 9)+i]) | ||
918 | + x[j- 8]*m[ldm*(j- 8)+i]) | ||
919 | + x[j- 7]*m[ldm*(j- 7)+i]) | ||
920 | + x[j- 6]*m[ldm*(j- 6)+i]) | ||
921 | + x[j- 5]*m[ldm*(j- 5)+i]) | ||
922 | + x[j- 4]*m[ldm*(j- 4)+i]) | ||
923 | + x[j- 3]*m[ldm*(j- 3)+i]) | ||
924 | + x[j- 2]*m[ldm*(j- 2)+i]) | ||
925 | + x[j- 1]*m[ldm*(j- 1)+i]) | ||
926 | + x[j] *m[ldm*j+i]; | ||
927 | } | ||
928 | } | ||
929 | |||
930 | /*----------------------*/ | ||
931 | REAL second() | ||
932 | { | ||
933 | #include <sys/time.h> | ||
934 | #include <sys/resource.h> | ||
935 | |||
936 | struct rusage ru; | ||
937 | REAL t ; | ||
938 | |||
939 | //void getrusage(); | ||
940 | |||
941 | getrusage(RUSAGE_SELF,&ru) ; | ||
942 | |||
943 | t = (REAL) (ru.ru_utime.tv_sec+ru.ru_stime.tv_sec) + | ||
944 | ((REAL) (ru.ru_utime.tv_usec+ru.ru_stime.tv_usec))/1.0e6 ; | ||
945 | return t ; | ||
946 | } | ||
diff --git a/armv7a/scripts/runLinpack b/armv7a/scripts/runLinpack deleted file mode 100755 index 84a9c69..0000000 --- a/armv7a/scripts/runLinpack +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | # Module: runLinpack | ||
2 | # | ||
3 | # Description: This script is used to list the memory partition information | ||
4 | # | ||
5 | # Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
6 | # | ||
7 | # Redistribution and use in source and binary forms, with or withou | ||
8 | # modification, are permitted provided that the following conditions | ||
9 | # are met: | ||
10 | # | ||
11 | # Redistributions of source code must retain the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer. | ||
13 | # | ||
14 | # Redistributions in binary form must reproduce the above copyright | ||
15 | # notice, this list of conditions and the following disclaimer in the | ||
16 | # documentation and/or other materials provided with the | ||
17 | # distribution. | ||
18 | # | ||
19 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
20 | # its contributors may be used to endorse or promote products derived | ||
21 | # from this software without specific prior written permission. | ||
22 | # | ||
23 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
24 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
25 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
26 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
27 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
28 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
29 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
30 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
31 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
32 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
33 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
34 | # | ||
35 | echo "" | ||
36 | echo "" | ||
37 | echo "" | ||
38 | echo "Linpack running ..." | ||
39 | echo "" | ||
40 | echo "Execution time approx 10 seconds" | ||
41 | linpack | ||
diff --git a/armv7a/whetstone/.project b/armv7a/whetstone/.project deleted file mode 100644 index 3bcb8fd..0000000 --- a/armv7a/whetstone/.project +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>whetstone</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <triggers>clean,full,incremental,</triggers> | ||
11 | <arguments> | ||
12 | <dictionary> | ||
13 | <key>?children?</key> | ||
14 | <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|\||</value> | ||
15 | </dictionary> | ||
16 | <dictionary> | ||
17 | <key>?name?</key> | ||
18 | <value></value> | ||
19 | </dictionary> | ||
20 | <dictionary> | ||
21 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
22 | <value>true</value> | ||
23 | </dictionary> | ||
24 | <dictionary> | ||
25 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
26 | <value>all</value> | ||
27 | </dictionary> | ||
28 | <dictionary> | ||
29 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
30 | <value></value> | ||
31 | </dictionary> | ||
32 | <dictionary> | ||
33 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
34 | <value>make</value> | ||
35 | </dictionary> | ||
36 | <dictionary> | ||
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
38 | <value>clean</value> | ||
39 | </dictionary> | ||
40 | <dictionary> | ||
41 | <key>org.eclipse.cdt.make.core.contents</key> | ||
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
43 | </dictionary> | ||
44 | <dictionary> | ||
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
46 | <value>false</value> | ||
47 | </dictionary> | ||
48 | <dictionary> | ||
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
50 | <value>true</value> | ||
51 | </dictionary> | ||
52 | <dictionary> | ||
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
54 | <value>true</value> | ||
55 | </dictionary> | ||
56 | <dictionary> | ||
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
58 | <value>release</value> | ||
59 | </dictionary> | ||
60 | <dictionary> | ||
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
62 | <value>true</value> | ||
63 | </dictionary> | ||
64 | <dictionary> | ||
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
66 | <value>true</value> | ||
67 | </dictionary> | ||
68 | </arguments> | ||
69 | </buildCommand> | ||
70 | <buildCommand> | ||
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
72 | <triggers>full,incremental,</triggers> | ||
73 | <arguments> | ||
74 | </arguments> | ||
75 | </buildCommand> | ||
76 | </buildSpec> | ||
77 | <natures> | ||
78 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
79 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
81 | </natures> | ||
82 | </projectDescription> | ||
diff --git a/armv7a/whetstone/whetstone.c b/armv7a/whetstone/whetstone.c deleted file mode 100755 index 3850c55..0000000 --- a/armv7a/whetstone/whetstone.c +++ /dev/null | |||
@@ -1,471 +0,0 @@ | |||
1 | /* | ||
2 | * {module name} Whetstone | ||
3 | * | ||
4 | * {module description} | ||
5 | * | ||
6 | * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/ | ||
7 | * | ||
8 | * | ||
9 | * Redistribution and use in source and binary forms, with or without | ||
10 | * modification, are permitted provided that the following conditions | ||
11 | * are met: | ||
12 | * | ||
13 | * Redistributions of source code must retain the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer. | ||
15 | * | ||
16 | * Redistributions in binary form must reproduce the above copyright | ||
17 | * notice, this list of conditions and the following disclaimer in the | ||
18 | * documentation and/or other materials provided with the | ||
19 | * distribution. | ||
20 | * | ||
21 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
22 | * its contributors may be used to endorse or promote products derived | ||
23 | * from this software without specific prior written permission. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
26 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
27 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
28 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
29 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
31 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | */ | ||
38 | |||
39 | /* | ||
40 | * C Converted Whetstone Double Precision Benchmark | ||
41 | * Version 1.2 22 March 1998 | ||
42 | * | ||
43 | * (c) Copyright 1998 Painter Engineering, Inc. | ||
44 | * All Rights Reserved. | ||
45 | * | ||
46 | * Permission is granted to use, duplicate, and | ||
47 | * publish this text and program as long as it | ||
48 | * includes this entire comment block and limited | ||
49 | * rights reference. | ||
50 | * | ||
51 | * Converted by Rich Painter, Painter Engineering, Inc. based on the | ||
52 | * www.netlib.org benchmark/whetstoned version obtained 16 March 1998. | ||
53 | * | ||
54 | * A novel approach was used here to keep the look and feel of the | ||
55 | * FORTRAN version. Altering the FORTRAN-based array indices, | ||
56 | * starting at element 1, to start at element 0 for C, would require | ||
57 | * numerous changes, including decrementing the variable indices by 1. | ||
58 | * Instead, the array E1[] was declared 1 element larger in C. This | ||
59 | * allows the FORTRAN index range to function without any literal or | ||
60 | * variable indices changes. The array element E1[0] is simply never | ||
61 | * used and does not alter the benchmark results. | ||
62 | * | ||
63 | * The major FORTRAN comment blocks were retained to minimize | ||
64 | * differences between versions. Modules N5 and N12, like in the | ||
65 | * FORTRAN version, have been eliminated here. | ||
66 | * | ||
67 | * An optional command-line argument has been provided [-c] to | ||
68 | * offer continuous repetition of the entire benchmark. | ||
69 | * An optional argument for setting an alternate LOOP count is also | ||
70 | * provided. Define PRINTOUT to cause the POUT() function to print | ||
71 | * outputs at various stages. Final timing measurements should be | ||
72 | * made with the PRINTOUT undefined. | ||
73 | * | ||
74 | * Questions and comments may be directed to the author at | ||
75 | * r.painter@ieee.org | ||
76 | */ | ||
77 | /* | ||
78 | C********************************************************************** | ||
79 | C Benchmark #2 -- Double Precision Whetstone (A001) | ||
80 | C | ||
81 | C o This is a REAL*8 version of | ||
82 | C the Whetstone benchmark program. | ||
83 | C | ||
84 | C o DO-loop semantics are ANSI-66 compatible. | ||
85 | C | ||
86 | C o Final measurements are to be made with all | ||
87 | C WRITE statements and FORMAT sttements removed. | ||
88 | C | ||
89 | C********************************************************************** | ||
90 | */ | ||
91 | |||
92 | /* standard C library headers required */ | ||
93 | #include <stdlib.h> | ||
94 | #include <stdio.h> | ||
95 | #include <string.h> | ||
96 | #include <math.h> | ||
97 | |||
98 | /* the following is optional depending on the timing function used */ | ||
99 | #include <time.h> | ||
100 | |||
101 | /* map the FORTRAN math functions, etc. to the C versions */ | ||
102 | #define DSIN sin | ||
103 | #define DCOS cos | ||
104 | #define DATAN atan | ||
105 | #define DLOG log | ||
106 | #define DEXP exp | ||
107 | #define DSQRT sqrt | ||
108 | #define IF if | ||
109 | |||
110 | /* function prototypes */ | ||
111 | void POUT(long N, long J, long K, double X1, double X2, double X3, double X4); | ||
112 | void PA(double E[]); | ||
113 | void P0(void); | ||
114 | void P3(double X, double Y, double *Z); | ||
115 | #define USAGE "usage: whetdc [-c] [loops]\n" | ||
116 | |||
117 | /* | ||
118 | COMMON T,T1,T2,E1(4),J,K,L | ||
119 | */ | ||
120 | double T,T1,T2,E1[5]; | ||
121 | int J,K,L; | ||
122 | |||
123 | int | ||
124 | main(int argc, char *argv[]) | ||
125 | { | ||
126 | /* used in the FORTRAN version */ | ||
127 | long I; | ||
128 | long N1, N2, N3, N4, N6, N7, N8, N9, N10, N11; | ||
129 | double X1,X2,X3,X4,X,Y,Z; | ||
130 | long LOOP; | ||
131 | int II, JJ; | ||
132 | |||
133 | /* added for this version */ | ||
134 | long loopstart; | ||
135 | long startsec, finisec; | ||
136 | float KIPS; | ||
137 | int continuous; | ||
138 | |||
139 | loopstart = 1000; /* see the note about LOOP below */ | ||
140 | continuous = 0; | ||
141 | |||
142 | II = 1; /* start at the first arg (temp use of II here) */ | ||
143 | while (II < argc) { | ||
144 | if (strncmp(argv[II], "-c", 2) == 0 || argv[II][0] == 'c') { | ||
145 | continuous = 1; | ||
146 | } else if (atol(argv[II]) > 0) { | ||
147 | loopstart = atol(argv[II]); | ||
148 | } else { | ||
149 | fprintf(stderr, USAGE); | ||
150 | return(1); | ||
151 | } | ||
152 | II++; | ||
153 | } | ||
154 | |||
155 | LCONT: | ||
156 | /* | ||
157 | C | ||
158 | C Start benchmark timing at this point. | ||
159 | C | ||
160 | */ | ||
161 | startsec = time(0); | ||
162 | |||
163 | /* | ||
164 | C | ||
165 | C The actual benchmark starts here. | ||
166 | C | ||
167 | */ | ||
168 | T = .499975; | ||
169 | T1 = 0.50025; | ||
170 | T2 = 2.0; | ||
171 | /* | ||
172 | C | ||
173 | C With loopcount LOOP=10, one million Whetstone instructions | ||
174 | C will be executed in EACH MAJOR LOOP..A MAJOR LOOP IS EXECUTED | ||
175 | C 'II' TIMES TO INCREASE WALL-CLOCK TIMING ACCURACY. | ||
176 | C | ||
177 | LOOP = 1000; | ||
178 | */ | ||
179 | LOOP = loopstart; | ||
180 | II = 1; | ||
181 | |||
182 | JJ = 1; | ||
183 | |||
184 | IILOOP: | ||
185 | N1 = 0; | ||
186 | N2 = 12 * LOOP; | ||
187 | N3 = 14 * LOOP; | ||
188 | N4 = 345 * LOOP; | ||
189 | N6 = 210 * LOOP; | ||
190 | N7 = 32 * LOOP; | ||
191 | N8 = 899 * LOOP; | ||
192 | N9 = 616 * LOOP; | ||
193 | N10 = 0; | ||
194 | N11 = 93 * LOOP; | ||
195 | /* | ||
196 | C | ||
197 | C Module 1: Simple identifiers | ||
198 | C | ||
199 | */ | ||
200 | X1 = 1.0; | ||
201 | X2 = -1.0; | ||
202 | X3 = -1.0; | ||
203 | X4 = -1.0; | ||
204 | |||
205 | for (I = 1; I <= N1; I++) { | ||
206 | X1 = (X1 + X2 + X3 - X4) * T; | ||
207 | X2 = (X1 + X2 - X3 + X4) * T; | ||
208 | X3 = (X1 - X2 + X3 + X4) * T; | ||
209 | X4 = (-X1+ X2 + X3 + X4) * T; | ||
210 | } | ||
211 | #ifdef PRINTOUT | ||
212 | IF (JJ==II)POUT(N1,N1,N1,X1,X2,X3,X4); | ||
213 | #endif | ||
214 | |||
215 | /* | ||
216 | C | ||
217 | C Module 2: Array elements | ||
218 | C | ||
219 | */ | ||
220 | E1[1] = 1.0; | ||
221 | E1[2] = -1.0; | ||
222 | E1[3] = -1.0; | ||
223 | E1[4] = -1.0; | ||
224 | |||
225 | for (I = 1; I <= N2; I++) { | ||
226 | E1[1] = ( E1[1] + E1[2] + E1[3] - E1[4]) * T; | ||
227 | E1[2] = ( E1[1] + E1[2] - E1[3] + E1[4]) * T; | ||
228 | E1[3] = ( E1[1] - E1[2] + E1[3] + E1[4]) * T; | ||
229 | E1[4] = (-E1[1] + E1[2] + E1[3] + E1[4]) * T; | ||
230 | } | ||
231 | |||
232 | #ifdef PRINTOUT | ||
233 | IF (JJ==II)POUT(N2,N3,N2,E1[1],E1[2],E1[3],E1[4]); | ||
234 | #endif | ||
235 | |||
236 | /* | ||
237 | C | ||
238 | C Module 3: Array as parameter | ||
239 | C | ||
240 | */ | ||
241 | for (I = 1; I <= N3; I++) | ||
242 | PA(E1); | ||
243 | |||
244 | #ifdef PRINTOUT | ||
245 | IF (JJ==II)POUT(N3,N2,N2,E1[1],E1[2],E1[3],E1[4]); | ||
246 | #endif | ||
247 | |||
248 | /* | ||
249 | C | ||
250 | C Module 4: Conditional jumps | ||
251 | C | ||
252 | */ | ||
253 | J = 1; | ||
254 | for (I = 1; I <= N4; I++) { | ||
255 | if (J == 1) | ||
256 | J = 2; | ||
257 | else | ||
258 | J = 3; | ||
259 | |||
260 | if (J > 2) | ||
261 | J = 0; | ||
262 | else | ||
263 | J = 1; | ||
264 | |||
265 | if (J < 1) | ||
266 | J = 1; | ||
267 | else | ||
268 | J = 0; | ||
269 | } | ||
270 | |||
271 | #ifdef PRINTOUT | ||
272 | IF (JJ==II)POUT(N4,J,J,X1,X2,X3,X4); | ||
273 | #endif | ||
274 | |||
275 | /* | ||
276 | C | ||
277 | C Module 5: Omitted | ||
278 | C Module 6: Integer arithmetic | ||
279 | C | ||
280 | */ | ||
281 | |||
282 | J = 1; | ||
283 | K = 2; | ||
284 | L = 3; | ||
285 | |||
286 | for (I = 1; I <= N6; I++) { | ||
287 | J = J * (K-J) * (L-K); | ||
288 | K = L * K - (L-J) * K; | ||
289 | L = (L-K) * (K+J); | ||
290 | E1[L-1] = J + K + L; | ||
291 | E1[K-1] = J * K * L; | ||
292 | } | ||
293 | |||
294 | #ifdef PRINTOUT | ||
295 | IF (JJ==II)POUT(N6,J,K,E1[1],E1[2],E1[3],E1[4]); | ||
296 | #endif | ||
297 | |||
298 | /* | ||
299 | C | ||
300 | C Module 7: Trigonometric functions | ||
301 | C | ||
302 | */ | ||
303 | X = 0.5; | ||
304 | Y = 0.5; | ||
305 | |||
306 | for (I = 1; I <= N7; I++) { | ||
307 | X = T * DATAN(T2*DSIN(X)*DCOS(X)/(DCOS(X+Y)+DCOS(X-Y)-1.0)); | ||
308 | Y = T * DATAN(T2*DSIN(Y)*DCOS(Y)/(DCOS(X+Y)+DCOS(X-Y)-1.0)); | ||
309 | } | ||
310 | |||
311 | #ifdef PRINTOUT | ||
312 | IF (JJ==II)POUT(N7,J,K,X,X,Y,Y); | ||
313 | #endif | ||
314 | |||
315 | /* | ||
316 | C | ||
317 | C Module 8: Procedure calls | ||
318 | C | ||
319 | */ | ||
320 | X = 1.0; | ||
321 | Y = 1.0; | ||
322 | Z = 1.0; | ||
323 | |||
324 | for (I = 1; I <= N8; I++) | ||
325 | P3(X,Y,&Z); | ||
326 | |||
327 | #ifdef PRINTOUT | ||
328 | IF (JJ==II)POUT(N8,J,K,X,Y,Z,Z); | ||
329 | #endif | ||
330 | |||
331 | /* | ||
332 | C | ||
333 | C Module 9: Array references | ||
334 | C | ||
335 | */ | ||
336 | J = 1; | ||
337 | K = 2; | ||
338 | L = 3; | ||
339 | E1[1] = 1.0; | ||
340 | E1[2] = 2.0; | ||
341 | E1[3] = 3.0; | ||
342 | |||
343 | for (I = 1; I <= N9; I++) | ||
344 | P0(); | ||
345 | |||
346 | #ifdef PRINTOUT | ||
347 | IF (JJ==II)POUT(N9,J,K,E1[1],E1[2],E1[3],E1[4]); | ||
348 | #endif | ||
349 | |||
350 | /* | ||
351 | C | ||
352 | C Module 10: Integer arithmetic | ||
353 | C | ||
354 | */ | ||
355 | J = 2; | ||
356 | K = 3; | ||
357 | |||
358 | for (I = 1; I <= N10; I++) { | ||
359 | J = J + K; | ||
360 | K = J + K; | ||
361 | J = K - J; | ||
362 | K = K - J - J; | ||
363 | } | ||
364 | |||
365 | #ifdef PRINTOUT | ||
366 | IF (JJ==II)POUT(N10,J,K,X1,X2,X3,X4); | ||
367 | #endif | ||
368 | |||
369 | /* | ||
370 | C | ||
371 | C Module 11: Standard functions | ||
372 | C | ||
373 | */ | ||
374 | X = 0.75; | ||
375 | |||
376 | for (I = 1; I <= N11; I++) | ||
377 | X = DSQRT(DEXP(DLOG(X)/T1)); | ||
378 | |||
379 | #ifdef PRINTOUT | ||
380 | IF (JJ==II)POUT(N11,J,K,X,X,X,X); | ||
381 | #endif | ||
382 | |||
383 | /* | ||
384 | C | ||
385 | C THIS IS THE END OF THE MAJOR LOOP. | ||
386 | C | ||
387 | */ | ||
388 | if (++JJ <= II) | ||
389 | goto IILOOP; | ||
390 | |||
391 | /* | ||
392 | C | ||
393 | C Stop benchmark timing at this point. | ||
394 | C | ||
395 | */ | ||
396 | finisec = time(0); | ||
397 | |||
398 | /* | ||
399 | C---------------------------------------------------------------- | ||
400 | C Performance in Whetstone KIP's per second is given by | ||
401 | C | ||
402 | C (100*LOOP*II)/TIME | ||
403 | C | ||
404 | C where TIME is in seconds. | ||
405 | C-------------------------------------------------------------------- | ||
406 | */ | ||
407 | printf("\n"); | ||
408 | if (finisec-startsec <= 0) { | ||
409 | printf("Insufficient duration- Increase the LOOP count\n"); | ||
410 | return(1); | ||
411 | } | ||
412 | |||
413 | printf("Loops: %ld, Iterations: %d, Duration: %ld sec.\n", | ||
414 | LOOP, II, finisec-startsec); | ||
415 | |||
416 | KIPS = (100.0*LOOP*II)/(float)(finisec-startsec); | ||
417 | if (KIPS >= 1000.0) | ||
418 | printf("C Converted Double Precision Whetstones: %.1f MIPS\n", KIPS/1000.0); | ||
419 | else | ||
420 | printf("C Converted Double Precision Whetstones: %.1f KIPS\n", KIPS); | ||
421 | |||
422 | if (continuous) | ||
423 | goto LCONT; | ||
424 | |||
425 | return(0); | ||
426 | } | ||
427 | |||
428 | void | ||
429 | PA(double E[]) | ||
430 | { | ||
431 | J = 0; | ||
432 | |||
433 | L10: | ||
434 | E[1] = ( E[1] + E[2] + E[3] - E[4]) * T; | ||
435 | E[2] = ( E[1] + E[2] - E[3] + E[4]) * T; | ||
436 | E[3] = ( E[1] - E[2] + E[3] + E[4]) * T; | ||
437 | E[4] = (-E[1] + E[2] + E[3] + E[4]) / T2; | ||
438 | J += 1; | ||
439 | |||
440 | if (J < 6) | ||
441 | goto L10; | ||
442 | } | ||
443 | |||
444 | void | ||
445 | P0(void) | ||
446 | { | ||
447 | E1[J] = E1[K]; | ||
448 | E1[K] = E1[L]; | ||
449 | E1[L] = E1[J]; | ||
450 | } | ||
451 | |||
452 | void | ||
453 | P3(double X, double Y, double *Z) | ||
454 | { | ||
455 | double X1, Y1; | ||
456 | |||
457 | X1 = X; | ||
458 | Y1 = Y; | ||
459 | X1 = T * (X1 + Y1); | ||
460 | Y1 = T * (X1 + Y1); | ||
461 | *Z = (X1 + Y1) / T2; | ||
462 | } | ||
463 | |||
464 | #ifdef PRINTOUT | ||
465 | void | ||
466 | POUT(long N, long J, long K, double X1, double X2, double X3, double X4) | ||
467 | { | ||
468 | printf("%7ld %7ld %7ld %12.4e %12.4e %12.4e %12.4e\n", | ||
469 | N, J, K, X1, X2, X3, X4); | ||
470 | } | ||
471 | #endif | ||
diff --git a/armv7a/dhrystone/.cproject b/dhrystone/.cproject index a0e9360..d87bc8e 100755 --- a/armv7a/dhrystone/.cproject +++ b/dhrystone/.cproject | |||
@@ -38,8 +38,8 @@ | |||
38 | </tool> | 38 | </tool> |
39 | <tool id="org.eclipse.cdt.build.core.settings.holder.10173995" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 39 | <tool id="org.eclipse.cdt.build.core.settings.holder.10173995" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.469144721" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.469144721" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 41 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
42 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 42 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
43 | </option> | 43 | </option> |
44 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1760758922" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | 44 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1760758922" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> |
45 | <listOptionValue builtIn="false" value="TIME"/> | 45 | <listOptionValue builtIn="false" value="TIME"/> |
@@ -87,8 +87,8 @@ | |||
87 | </tool> | 87 | </tool> |
88 | <tool id="org.eclipse.cdt.build.core.settings.holder.1558009345" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 88 | <tool id="org.eclipse.cdt.build.core.settings.holder.1558009345" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
89 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.488023349" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 89 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.488023349" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
90 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 90 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
91 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 91 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
92 | </option> | 92 | </option> |
93 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1404063137" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | 93 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1404063137" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> |
94 | <listOptionValue builtIn="false" value="TIME"/> | 94 | <listOptionValue builtIn="false" value="TIME"/> |
diff --git a/armv5te/dhrystone/.project b/dhrystone/.project index f53bb2e..f53bb2e 100644 --- a/armv5te/dhrystone/.project +++ b/dhrystone/.project | |||
diff --git a/armv7a/dhrystone/Makefile b/dhrystone/Makefile index 56bf5a8..303be0a 100644 --- a/armv7a/dhrystone/Makefile +++ b/dhrystone/Makefile | |||
@@ -21,7 +21,7 @@ | |||
21 | # ---------------------------------------------------------------------------- | 21 | # ---------------------------------------------------------------------------- |
22 | # Variables passed in externally | 22 | # Variables passed in externally |
23 | # ---------------------------------------------------------------------------- | 23 | # ---------------------------------------------------------------------------- |
24 | CFLAGS ?= -march=armv7-a -mtune=cortex-a8 | 24 | CFLAGS ?= |
25 | CROSS_COMPILE ?= | 25 | CROSS_COMPILE ?= |
26 | 26 | ||
27 | # ---------------------------------------------------------------------------- | 27 | # ---------------------------------------------------------------------------- |
diff --git a/armv5te/dhrystone/dhry.h b/dhrystone/dhry.h index f236e79..f236e79 100755 --- a/armv5te/dhrystone/dhry.h +++ b/dhrystone/dhry.h | |||
diff --git a/armv5te/dhrystone/dhry_1.c b/dhrystone/dhry_1.c index 49c23cb..49c23cb 100644 --- a/armv5te/dhrystone/dhry_1.c +++ b/dhrystone/dhry_1.c | |||
diff --git a/armv5te/dhrystone/dhry_2.c b/dhrystone/dhry_2.c index 11b8280..11b8280 100644 --- a/armv5te/dhrystone/dhry_2.c +++ b/dhrystone/dhry_2.c | |||
diff --git a/armv7a/linpack/.cproject b/linpack/.cproject index 5228684..036d803 100755 --- a/armv7a/linpack/.cproject +++ b/linpack/.cproject | |||
@@ -38,8 +38,8 @@ | |||
38 | </tool> | 38 | </tool> |
39 | <tool id="org.eclipse.cdt.build.core.settings.holder.1633254868" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 39 | <tool id="org.eclipse.cdt.build.core.settings.holder.1633254868" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.307362351" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.307362351" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 41 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
42 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 42 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
43 | </option> | 43 | </option> |
44 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.220032693" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | 44 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.220032693" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> |
45 | <listOptionValue builtIn="false" value="SP"/> | 45 | <listOptionValue builtIn="false" value="SP"/> |
@@ -88,8 +88,8 @@ | |||
88 | </tool> | 88 | </tool> |
89 | <tool id="org.eclipse.cdt.build.core.settings.holder.1541351045" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 89 | <tool id="org.eclipse.cdt.build.core.settings.holder.1541351045" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
90 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1629834640" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 90 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1629834640" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
91 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 91 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
92 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 92 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
93 | </option> | 93 | </option> |
94 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1803162204" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> | 94 | <option id="org.eclipse.cdt.build.core.settings.holder.symbols.1803162204" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols"> |
95 | <listOptionValue builtIn="false" value="SP"/> | 95 | <listOptionValue builtIn="false" value="SP"/> |
diff --git a/armv5te/linpack/.project b/linpack/.project index 9d9db0d..9d9db0d 100644 --- a/armv5te/linpack/.project +++ b/linpack/.project | |||
diff --git a/armv7a/linpack/Makefile b/linpack/Makefile index fc6b2f4..6a9e4b6 100644 --- a/armv7a/linpack/Makefile +++ b/linpack/Makefile | |||
@@ -21,7 +21,7 @@ | |||
21 | # ---------------------------------------------------------------------------- | 21 | # ---------------------------------------------------------------------------- |
22 | # Variables passed in externally | 22 | # Variables passed in externally |
23 | # ---------------------------------------------------------------------------- | 23 | # ---------------------------------------------------------------------------- |
24 | CFLAGS ?= -march=armv7-a -mtune=cortex-a8 | 24 | CFLAGS ?= |
25 | CROSS_COMPILE ?= | 25 | CROSS_COMPILE ?= |
26 | 26 | ||
27 | # ---------------------------------------------------------------------------- | 27 | # ---------------------------------------------------------------------------- |
diff --git a/armv5te/linpack/linpack.c b/linpack/linpack.c index d663ff1..d663ff1 100644 --- a/armv5te/linpack/linpack.c +++ b/linpack/linpack.c | |||
diff --git a/armv7a/scripts/runDhrystone b/scripts/runDhrystone index d585a5c..d585a5c 100755 --- a/armv7a/scripts/runDhrystone +++ b/scripts/runDhrystone | |||
diff --git a/armv5te/scripts/runLinpack b/scripts/runLinpack index 84a9c69..84a9c69 100755 --- a/armv5te/scripts/runLinpack +++ b/scripts/runLinpack | |||
diff --git a/armv7a/scripts/runWhetstone b/scripts/runWhetstone index 2b88420..2b88420 100755 --- a/armv7a/scripts/runWhetstone +++ b/scripts/runWhetstone | |||
diff --git a/armv7a/whetstone/.cproject b/whetstone/.cproject index b9af34e..ad1406b 100755 --- a/armv7a/whetstone/.cproject +++ b/whetstone/.cproject | |||
@@ -38,8 +38,8 @@ | |||
38 | </tool> | 38 | </tool> |
39 | <tool id="org.eclipse.cdt.build.core.settings.holder.1608723022" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 39 | <tool id="org.eclipse.cdt.build.core.settings.holder.1608723022" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.840286991" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 40 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.840286991" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
41 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 41 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
42 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 42 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
43 | </option> | 43 | </option> |
44 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1812050132" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | 44 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1812050132" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> |
45 | </tool> | 45 | </tool> |
@@ -84,8 +84,8 @@ | |||
84 | </tool> | 84 | </tool> |
85 | <tool id="org.eclipse.cdt.build.core.settings.holder.599383459" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | 85 | <tool id="org.eclipse.cdt.build.core.settings.holder.599383459" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> |
86 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.747393986" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> | 86 | <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.747393986" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath"> |
87 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/> | 87 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_TARGET_INCLUDE_DIR>" /> |
88 | <listOptionValue builtIn="false" value="../../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/> | 88 | <listOptionValue builtIn="false" value="../../../../<TOOLCHAIN_INCLUDE_DIR>"/> |
89 | </option> | 89 | </option> |
90 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1685318505" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | 90 | <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1685318505" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> |
91 | </tool> | 91 | </tool> |
diff --git a/armv5te/whetstone/.project b/whetstone/.project index 3bcb8fd..3bcb8fd 100644 --- a/armv5te/whetstone/.project +++ b/whetstone/.project | |||
diff --git a/armv7a/whetstone/Makefile b/whetstone/Makefile index d22fefb..90b6ced 100644 --- a/armv7a/whetstone/Makefile +++ b/whetstone/Makefile | |||
@@ -21,7 +21,7 @@ | |||
21 | # ---------------------------------------------------------------------------- | 21 | # ---------------------------------------------------------------------------- |
22 | # Variables passed in externally | 22 | # Variables passed in externally |
23 | # ---------------------------------------------------------------------------- | 23 | # ---------------------------------------------------------------------------- |
24 | CFLAGS ?= -march=armv7-a -mtune=cortex-a8 | 24 | CFLAGS ?= |
25 | CROSS_COMPILE ?= | 25 | CROSS_COMPILE ?= |
26 | 26 | ||
27 | # ---------------------------------------------------------------------------- | 27 | # ---------------------------------------------------------------------------- |
diff --git a/armv5te/whetstone/whetstone.c b/whetstone/whetstone.c index 3850c55..3850c55 100755 --- a/armv5te/whetstone/whetstone.c +++ b/whetstone/whetstone.c | |||