LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Enrico Weigelt<weigelt@m...>
    Date: Fri Apr 18 02:01:06 CEST 2008
    Subject: [openrisc] Local Variable vs Global Variable
    Top
    * Robert Cragie <rcc@j...> wrote:

    > There won't be a .data section as the pointer is now an auto variable and
    > will be either a register or on the stack (most likely a register). So there
    > is no static variable anymore. The string itself will I presume be stored in
    > .rodata - check the output using or32-uclinux-objdump.

    BTW: what happens if that global variable is changed to static const char* ?


    cu
    --
    ---------------------------------------------------------------------
    Enrico Weigelt == metux IT service - http://www.metux.de/
    ---------------------------------------------------------------------
    Please visit the OpenSource QM Taskforce:
    http://wiki.metux.de/public/OpenSource_QM_Taskforce
    Patches / Fixes for a lot dozens of packages in dozens of versions:
    http://patches.metux.de/
    ---------------------------------------------------------------------

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.