Optiboot compilation largesize isue

Dear all

I compiled Optiboot OS in Atmel studio 6.2. I uploaded Hex file of the same code in ATmega328 using proteus, and now it shows that FILE SIZE IS TO LARGE.

please give me suggestion what should i do.

thanks in advance.

Compile options have changed between the version of avr-gcc used to compile optiboot. and the version that is part of Atmel Studio. Go to https://code.google.com/p/optiboot to get the latest source code, and set up your compile/link options to match the makefile there. See especially https://code.google.com/p/optiboot/source/detail?r=a10ef5c935a11a0e656927cd5e9b306937203f52