Jump to content

chrisassall

EstablishedMember
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About chrisassall

  • Rank
    Newbrie
  1. Thanks Dave for quick answer. Meanwhile I've made the example with some dos/command lines /batches ;-) Now I want to know, if it's possible to mix .obj/.lib from Boostc/Basic in one Project. In other words - are the obj/lib files generated from C/Basic are compatible so the linker can link them to a Hex file. Chris
  2. Just want to make a lib in Boostbasic. I tried your example from PunerjotMangat -> Hard-Usart consist of 3 files Usart.bas , Mylibs\usartlib.bas , Mylibs\lcdbaslib.bas compiling and linking at this state/ with the deliverd project file. Works. - O.K. Now tried to make a XXX.lib file from Mylibs\usartlib.bas , Mylibs\lcdbaslib.bas let's say Mylibs\uartlcd.lib for later linking with Usart.bas in a second project. So I deleted Usart.bas from the project and switch Settings->Options->Compiler-options from Application to Library. O.K. - Loo
  3. Dave, what I thought is not to overwrite the older install, but to remain it in it's directory -f.e. c:\programme\picant and all the files there - including the older IDE and the older compiler c2cpp.exe. Then install the new IDE in another directory f.e. . C:\Programme\SourceBoost. Then use 'older' C2CPP as ususal when starting picant from the older dir (Picant 5.0.8). Maybe then I could try to recompile all projects with the new IDE/C2CPP from SourceBoost dir. If it's identical - great - then forget the older install - if not - it's good to know that I can compile the older fil
  4. I want to try out new BoostC. But I have several older projects which I may had to support in the future without any problems. I use till now PicAnt 5.0.8 So for the older projetcs I want to use this version of the IDE and compiler and also for future support. (Never change a running .... ) Question: Is it possible to install BoostC parallel to my older PicAnt so that I can use the new version from now on for new projects and the older IDE/compiler for the old projects ? What should I respect ? I have a legal registration for PicAnt and C2C++ Thanks Chris
  5. That's exact what we all want to hear!! Great !!!!! One of the biggest antvantages of this compiler tool is the great great support !!! Regards
  6. No no , I agree with you totally!! I think the limited macro facilities are the weakest point of the c2c/c2c++ compiler - and in the last consequence could be the reason to have to change to compiler - this is really sad, because many other things I like so much of this tool. Also tried to use a standalone precompiler - but this is not possible, because of such C enhancements like 'direct adressing' which will cause an external preprocessor to fail!!! Also tried to ask Pavel what he plans about the preprocessor but never got any comment Regards Chris
  7. Save your time 'cracker' to go into the hospital to repair your brain. Nobody of the real users will use a cracked version of the compiler, because this tool is worth every penny and we also want to have the support of admin! I hope you also will be betrayed some day if you have to earn money for your living! you sucker !!
  8. Use simpler experession for a compare which should result in a bit test command: example: char _INTCON@0x0B; char _PIR1@0x0C; char _PIE1@0x8C; #define _T0IF 0x04 #define _TXIF 0x10 #define _TXIE 0x10 Use: if(_INTCON & _T0IF) { ... } instead of if ((_INTCON & _T0IF) != 0) { .... } This will also work with nested compares but you had to help the compiler a little bit ;-) // Better use this construction .... if(_PIR1 & _TXIF) if (_PIE1 & _TXIE) { } // instead of
  9. I will open a new topic where I want to pool all the optimisation 'tricks' belongig this topic. Regards, Chris
  10. Thanks Pavel - this works excellent - exact what I want ! :laugh: but we should point the other users to the fact that you must deactivate the 'context saving during interrupt' option of the compiler if they use this script! >> in some cases C++ code may not work. The PicAnt IDE will issue a warning when such target gets selected. How could we - the users - find the code which maybe will not work - because the warning is only given at once and only global when you select a 'critical' target . ??? Regards, Chris
  11. Sorry - I had to shorten this posting (I omit the source samples) because the forum editor always cripples my text. I've send a much more detailed text direct to support@picant.com. ---------------------------------------------------------- Another problem (? :-) maybe only for me). If you want to use Option 'Context saving during interrupt' and your PIC doesn't have common (mapped) register area - f.e. the 16C73 / 16F73. The compiler generates the message 'Can't map context saving variables into mapped area.' O.K. that's clear - because the compiler generates code with
  12. Thanks Admin for the Tip -- but the expression if ((INTCON & _T0IF) != 0) is extracted of your example Sample #4 that outputs a string to serial line using interrupts. http://www.picant.com/c2c/examples.html As I have the compiler only a short time I thought that this example was exemplarily and it makes no difference to give the compiler the complicated expression or the simple. Normally I prefer the complicated expression - because then I had not to bear in mind how is the logic in C. (is 0 true or is it false ? .... ) ((INTCON & _T0IF) != 0) is more
  13. Because C2C++ has most (all) the features of C2C (am I right Admin ?!). Then also C2C would be free! Besides - why should the C2C++ be free? Regards Chris
  14. Got Single User license for the C2C++ compiler version: 1.2 as: Christian Assall last week. It really fun only to look what the compiler makes with your C-Code! :-) But then the shock! Where is a test_bit() function! If you want to test in the intterupt the int flags you must use if ((_INTCON & _T0IF) != 0) and you will get: movf __INTCON, W andlw D'4' sublw D'0' movlw 1 btfsc STATUS, Z clrw sublw 0 btfsc STATUS, Z goto label_0000 but if you made this in assembler you will made this of course btfss INTCON,T0IF goto handle_int tes
×
×
  • Create New...