
Am I missing something? Is it possible to set up the new Flowcode to use MPASMWIN (and pick up the include files), after the pre processor and compiler have done what they need to do?
Stevesteve wrote: V3 uses a different C compiler that generates the HEX file directly from the C file, but also produces an Assembly file.
Stevesteve wrote:canipus,
I'm not sure exactly what the compiler/linker does internally, but it takes a C file and produces an ASM file, a HEX file and a load of other files that can be used for debugging purposes. And it does all of this without the need for an assembler such as MPASM.
If I find out any more, I'll let you know.
Dave,Dave wrote:Behind the scenes Flowcode 3 uses the BoostC compiler from SourceBoost Technologies (http://www.sourceboost.com). The BoostC compiler goes from C code to a .hex (intel hex) file, that is one that you can download using your device programming hardware and software.
The advantage of not using MPASM is that there is no longer a dependancy on it. It MPASM doesn't have to be installed to use FlowCode 3. A layer of complexity has been removed.
The code produce by BoostC is no better than that produce by MPASM fed with an assembly file that has all the required instructions in it (they both have the same instruction set to play with).
In fact BoostC creates a .asm file for those people who would like to assemble the code using MPASM. You can assemble this code with MPASM and you will get exactly the same .hex file contents that BoostC generates.
Have a look in .asm , .casm and .lst produced during a compilation.
I hope that helps.
Regards
Dave
Right, but we're not talking about the same assembler in these two cases. In the first case the internal assemble is manufactured by ? and in the second case the outboard assembler is manufactured by Microchip; or are you saying the assembler part of the new C compiler IS the Microchip assembler? ....ah that would explain everthing - and yes in that case there is no problem. I'm under the impression that the new compiler is using a proprietary assembler? Can you confirm?steve wrote:canipus,
Personally, I don't see the problem.
If the code going into MPASM is erroneous in any way, then that will severely compromise a system's behaviour. So, having the assembly internal to the C compiler/linker is just as "secure" as producing an ASM file and having it be assembled by MPASM. This is because the C compiler is just as likely to produce 'bad' ASM code as it is to produce a 'bad' HEX file.
The reliability of the code produced by a system is not a combination of the reliability of the individual components within that system. Rather, it is dependent on the way in which the system works as a whole.
Nope, it is not the Microchip assembler.are you saying the assembler part of the new C compiler IS the Microchip assembler?