c - Comparing object files generated from two build systems - Gradle and GNUMake -
i trying compare 2 build systems - gnumake , gradle , trying find out best fits software development. same git commit, if try compile c sources on 2 build systems using same version of gcc compiler , linker, generated object files alike?
i generated 2 sets of objects , ran command this:
diff gnumake_file.o gradle_file.o
and got output as:
binary files gnumake_file.o , gradle_file.o differ
i did cmp -l
2 sets , huge number of lines similar this:
13699 11 21
13700 4 363
13704 346 302
13707 15 12
13711 0 22
13712 0 13
13715 0 7
13716 6 317
13719 6 14
i think means 2 object files different @ many places. comparison correct? there way in finding out if different , if why? have tried best of abilities make compiler flags , command alike on both systems. comments have done before or have fair idea on welcome.
also attached compiler commands arbitary c source file directory:
with gnumake
sparc-rtems-gcc -md -mf 'dep/my_source.dep' -mp -mt 'obj/my_source.o dep/my_source.dep' -w -wall -waggregate-return -wcast-align -wchar-subscripts -wbad-function-cast -wcomment -wformat -wimplicit -winline -wmissing-prototypes -wmissing-declarations -wnested-externs -wparentheses -wpointer-arith -wshadow -wswitch -wuninitialized -wunused -wwrite-strings -wno-conversion -wreturn-type -i/all/include/file/locations -i/all/include/file/locations -i/all/include/file/locations -i/all/include/file/locations -i/all/include/file/locations -dcpu=scoc3 -dcpu_scoc3 -dinline=inline -fno-common -fno-strict-aliasing -fno-builtin-sqrt -fno-builtin-sqrtf -fno-builtin-acos -fno-builtin-acosf -fno-builtin-asin -fno-builtin-asinf -fno-builtin-atan -fno-builtin-atanf -fno-builtin-atan2 -fno-builtin-atan2f -fno-builtin-cos -fno-builtin-cosf -fno-builtin-sin -fno-builtin-sinf -fno-builtin-tan -fno-builtin-tanf -fno-builtin-scalbn -fno-builtin-scalbnf -fno-builtin-floor -fno-builtin-floorf -fno-builtin-fabs -fno-builtin-fabsf -fno-builtin-copysign -fno-builtin-copysignf -fno-builtin-exp -fno-builtin-expf -fno-builtin-log -fno-builtin-logf -fno-builtin-exp2 -fno-builtin-exp2f -fno-builtin-log2 -fno-builtin-log2f -fno-builtin-exp10 -fno-builtin-exp10f -fno-builtin-log10 -fno-builtin-log10f -fno-builtin-pow -fno-builtin-powf -fno-builtin-pow10 -fno-builtin-pow10f -d__objects_inl -drtems_qualif -mv8 -mgrfpu -mgrcache -o2 -gdwarf-2 -c my_source.c -o obj/my_source.o
with gradle
command: /opt/rtems/4.6_20130612/bin/sparc-rtems-gcc -x c -c -w -wall -waggregate-return -wcast-align -wchar-subscripts -wbad-function-cast -wcomment -wformat -wimplicit -winline -wmissing-prototypes -wmissing-declarations -wnested-externs -wparentheses -wpointer-arith -wshadow -wswitch -wuninitialized -wunused -wwrite-strings -wno-conversion -wreturn-type -dcpu=scoc3 -dcpu_scoc3 -dinline=inline -fno-common -fno-strict-aliasing -fno-builtin-sqrt -fno-builtin-sqrtf -fno-builtin-acos -fno-builtin-acosf -fno-builtin-asin -fno-builtin-asinf -fno-builtin-atan -fno-builtin-atanf -fno-builtin-atan2 -fno-builtin-atan2f -fno-builtin-cos -fno-builtin-cosf -fno-builtin-sin -fno-builtin-sinf -fno-builtin-tan -fno-builtin-tanf -fno-builtin-scalbn -fno-builtin-scalbnf -fno-builtin-floor -fno-builtin-floorf -fno-builtin-fabs -fno-builtin-fabsf -fno-builtin-copysign -fno-builtin-copysignf -fno-builtin-exp -fno-builtin-expf -fno-builtin-log -fno-builtin-logf -fno-builtin-exp2 -fno-builtin-exp2f -fno-builtin-log2 -fno-builtin-log2f -fno-builtin-exp10 -fno-builtin-exp10f -fno-builtin-log10 -fno-builtin-pow -fno-builtin-powf -fno-builtin-pow10 -fno-builtin-pow10f -d__objects_inl -drtems_qualif -mv8 -mgrfpu -mgrcache -o2 -gdwarf-2 -i all/include/file/locations -i all/include/file/locations all/include/file/locations my_source.c -o my_source.o
Comments
Post a Comment