This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

memory location c8051f381

hii
Does it change the memory location following two forms of writing?
float EffectiveTime=0;
float EffectiveTime=0;
Thanks

Parents
  • When I select the first option I have strange effects
    Perhaps the memory overflow

    1)

    #include "compiler_defs.h"
    #include "C8051F380_defs.h"                // SFR declarations
    #include <stdio.h>
    #include <string.h>
    #include <math.h>
    #include <float.h>
    
    #include "LCD_controll_M_40.c"
    #include "Memory_mangment_M_40.c"
    #include "rtc_controll_M_40.c"
    .
    .
    .
    float EffectiveTime=0;
    
    .
    .
    .
    void main (void)
    {
    .
    .
    .
    .
    
    
    
    
    }
    

    2)

    #include "compiler_defs.h"
    #include "C8051F380_defs.h"                // SFR declarations
    #include <stdio.h>
    #include <string.h>
    #include <math.h>
    #include <float.h>
    
    #include "LCD_controll_M_40.c"
    #include "Memory_mangment_M_40.c"
    #include "rtc_controll_M_40.c"
    .
    .
    .
    float EffectiveTime;
    
    .
    .
    .
    void main (void)
    {EffectiveTime=0;
    ..
    }
    

Reply
  • When I select the first option I have strange effects
    Perhaps the memory overflow

    1)

    #include "compiler_defs.h"
    #include "C8051F380_defs.h"                // SFR declarations
    #include <stdio.h>
    #include <string.h>
    #include <math.h>
    #include <float.h>
    
    #include "LCD_controll_M_40.c"
    #include "Memory_mangment_M_40.c"
    #include "rtc_controll_M_40.c"
    .
    .
    .
    float EffectiveTime=0;
    
    .
    .
    .
    void main (void)
    {
    .
    .
    .
    .
    
    
    
    
    }
    

    2)

    #include "compiler_defs.h"
    #include "C8051F380_defs.h"                // SFR declarations
    #include <stdio.h>
    #include <string.h>
    #include <math.h>
    #include <float.h>
    
    #include "LCD_controll_M_40.c"
    #include "Memory_mangment_M_40.c"
    #include "rtc_controll_M_40.c"
    .
    .
    .
    float EffectiveTime;
    
    .
    .
    .
    void main (void)
    {EffectiveTime=0;
    ..
    }
    

Children