Skip to content

Instantly share code, notes, and snippets.

View richardstartin's full-sized avatar

Richard Startin richardstartin

View GitHub Profile
// Code being analyzed
//
// 1. package ch.ethz.acl.ngen.saxpy;
// 2.
// 3. public class JSaxpy {
// 4. public void apply(int[] a, int[] b, int s, int n){
// 5. for (int i = 0; i < n; i += 1) {
// 6. a[i] += b[i] * s;
// 7. }
// 8. }
@richardstartin
richardstartin / SAXPY
Created December 23, 2017 21:59 — forked from astojanov/SAXPY
// 1. package ch.ethz.acl.ngen.saxpy;
// 2.
// 3. public class JSaxpy {
// 4. public void apply(float[] a, float[] b, float s, int n){
// 5. for (int i = 0; i < n; i += 1) {
// 6. a[i] += b[i] * s;
// 7. }
// 8. }
// 9. }
Java HotSpot(TM) 64-Bit Server VM warning: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
CompilerOracle: print *JVector8.dot
Compiled method (c1) 807 864 % 3 ch.ethz.acl.ngen.precison.JVector8::dot @ 35 (134 bytes)
total in heap [0x000000010f6dd010,0x000000010f6ddbb0] = 2976
relocation [0x000000010f6dd138,0x000000010f6dd1b0] = 120
main code [0x000000010f6dd1c0,0x000000010f6dd640] = 1152
stub code [0x000000010f6dd640,0x000000010f6dd6d0] = 144
oops [0x000000010f6dd6d0,0x000000010f6dd6d8] = 8
metadata [0x000000010f6dd6d8,0x000000010f6dd6e0] = 8
scopes data [0x000000010f6dd6e0,0x000000010f6dd830] = 336